]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Use proper key when searching hash.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Apr 2015 14:13:37 +0000 (15:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Apr 2015 14:13:37 +0000 (15:13 +0100)
src/plugins/surbl.c

index 2f9467c57de898da7c57d37c5c5853cbd786d5cf..95e8d3979e1e7eefad205572f4800c8aedf6887c 100644 (file)
@@ -1091,7 +1091,7 @@ surbl_tree_url_callback (gpointer key, gpointer value, void *data)
                                /* Try to find corresponding regexp */
                                re = g_hash_table_lookup (
                                                surbl_module_ctx->redirector_hosts,
-                                               pat);
+                                               pat->ptr);
                                if (re == NULL || rspamd_regexp_search (re, url->string, 0,
                                                NULL, NULL, TRUE)) {
                                        if (surbl_module_ctx->redirector_symbol != NULL) {