From 89ab03e9b072862caf3c9727264836688a458f8d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 21 Apr 2015 15:13:37 +0100 Subject: [PATCH] Use proper key when searching hash. --- src/plugins/surbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 2f9467c57d..95e8d3979e 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -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) { -- 2.47.3