diff --git a/admin/halog/halog.c b/admin/halog/halog.c index 5b6296033..52986849f 100644 --- a/admin/halog/halog.c +++ b/admin/halog/halog.c @@ -1801,6 +1801,8 @@ void filter_count_ip(const char *source_field, const char *accept_field, const c */ if (unlikely(!ustat)) ustat = calloc(1, sizeof(*ustat)); + if (!ustat) + return; ustat->nb_err = err; ustat->nb_req = 1;