From: Vsevolod Stakhov Date: Tue, 21 Apr 2015 14:13:37 +0000 (+0100) Subject: Use proper key when searching hash. X-Git-Tag: 0.9.0~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89ab03e9b072862caf3c9727264836688a458f8d;p=thirdparty%2Frspamd.git Use proper key when searching hash. --- 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) {