diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-31 08:29:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-31 08:29:10 +0100 |
commit | e87bb9314796804f5e8a45ce5ee8a4c45eb016ff (patch) | |
tree | 32edb1efe492dd512b4a7c1d44294629c8e88608 /src | |
parent | 438e7ed0627c1d0466391a92b6a262b6eba99880 (diff) | |
parent | 03dd4346d4c68d80b68d5593b1294f11468a63c3 (diff) | |
download | rspamd-e87bb9314796804f5e8a45ce5ee8a4c45eb016ff.tar.gz rspamd-e87bb9314796804f5e8a45ce5ee8a4c45eb016ff.zip |
Merge pull request #1779 from fatalbanana/urls
[Fix] Crash in URL processing
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/url.c | 2 |
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); |