From b646ba7e23947356a0786ec2e60d8e4ec955b807 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 29 Mar 2016 13:00:33 +0100 Subject: [PATCH] [Fix] Fix parsing of include/redirect with many records in SPF --- src/libserver/spf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libserver/spf.c b/src/libserver/spf.c index 7f404efb4..036990248 100644 --- a/src/libserver/spf.c +++ b/src/libserver/spf.c @@ -617,6 +617,8 @@ spf_record_dns_callback (struct rdns_reply *reply, gpointer arg) cb->addr->flags &= ~RSPAMD_SPF_FLAG_PARSED; } } + + goto end; break; case SPF_RESOLVE_INCLUDE: if (elt_data->type == RDNS_REQUEST_TXT) { @@ -627,6 +629,8 @@ spf_record_dns_callback (struct rdns_reply *reply, gpointer arg) cb->addr->flags &= ~RSPAMD_SPF_FLAG_PARSED; } } + goto end; + break; case SPF_RESOLVE_EXP: break; @@ -709,6 +713,7 @@ spf_record_dns_callback (struct rdns_reply *reply, gpointer arg) rdns_strerror (reply->code)); } +end: rspamd_spf_maybe_return (cb->rec); } -- 2.39.5