]> source.dussan.org Git - rspamd.git/commitdiff
Fix spf lists insertion.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 18 Dec 2013 11:27:06 +0000 (11:27 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 18 Dec 2013 11:27:06 +0000 (11:27 +0000)
src/spf.c

index 755156d4e0b415df977de8cce90f643418c123b2..e394005b89e89b9669f013f6a6cc3327ec235173 100644 (file)
--- a/src/spf.c
+++ b/src/spf.c
@@ -181,7 +181,7 @@ spf_addr_find (GList *addrs, gpointer to_find)
                addr = cur->data;
                if (addr->is_list) {
                        if ((res = spf_addr_find (addr->data.list, to_find)) != NULL) {
-                               return res;
+                               return cur;
                        }
                }
                else {