@@ -240,7 +240,7 @@ rspamd_redis_expand_object (const gchar *pattern, | |||
} | |||
} | |||
if (target == NULL) { | |||
if (target == NULL || task == NULL) { | |||
return tlen; | |||
} | |||
@@ -431,6 +431,9 @@ rspamd_http_parse_key (rspamd_ftok_t *data, struct rspamd_http_connection *conn, | |||
priv->local_key, priv->msg->peer_key); | |||
} | |||
} | |||
else { | |||
rspamd_pubkey_unref (pk); | |||
} | |||
} | |||
} | |||
@@ -476,7 +476,7 @@ fin: | |||
res->raw_re = pcre2_compile (real_pattern, PCRE2_ZERO_TERMINATED, | |||
regexp_flags & ~PCRE_FLAG(UTF), | |||
&err_code, &err_off, pcre2_ctx); | |||
if (r == NULL) { | |||
if (res->raw_re == NULL) { | |||
err_str = g_alloca (1024); | |||
memset (err_str, 0, 1024); | |||
pcre2_get_error_message (err_code, err_str, 1024); |
@@ -104,6 +104,7 @@ rspamadm_add_doc_elt (const ucl_object_t *obj, const ucl_object_t *doc_obj, | |||
nobj = ucl_object_fromstring_common ("/*", 0, 0); | |||
} | |||
else { | |||
rspamd_fstring_free (comment); | |||
return; | |||
} | |||