aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 8e0cb52ee..35e704f67 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -2546,7 +2546,7 @@ rspamd_url_task_subject_callback (struct rspamd_url *url, gsize start_offset,
" %*s", url_str, url->querylen, url->query);
if ((existing = g_hash_table_lookup (task->urls,
- query_url))) {
+ query_url)) == NULL) {
g_hash_table_insert (task->urls,
query_url,
query_url);