diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-02 15:02:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-02 15:02:55 +0100 |
commit | 40f832e8adbf639e7467ff6c436a54ac3dc43882 (patch) | |
tree | 34483917143d1319e5e468da194216c5ce55272d /src/libserver/spf.c | |
parent | 26832a9237178a763d57034c9e9636da0d6d8c7b (diff) | |
download | rspamd-40f832e8adbf639e7467ff6c436a54ac3dc43882.tar.gz rspamd-40f832e8adbf639e7467ff6c436a54ac3dc43882.zip |
Fix warnings.
Diffstat (limited to 'src/libserver/spf.c')
-rw-r--r-- | src/libserver/spf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/spf.c b/src/libserver/spf.c index 7ba714583..f324454ae 100644 --- a/src/libserver/spf.c +++ b/src/libserver/spf.c @@ -230,7 +230,7 @@ rspamd_spf_process_reference (struct spf_resolved *target, struct spf_addr *addr, struct spf_record *rec, gboolean top) { struct spf_resolved_element *elt; - struct spf_addr *cur, taddr; + struct spf_addr *cur = NULL, taddr; guint i; if (addr) { @@ -252,6 +252,7 @@ rspamd_spf_process_reference (struct spf_resolved *target, } } + g_assert (cur != NULL); if (!(cur->flags & RSPAMD_SPF_FLAG_PARSED)) { /* Unresolved redirect */ msg_info ("redirect to %s cannot be resolved", cur->spf_string); @@ -630,6 +631,7 @@ parse_spf_domain_mask (struct spf_record *rec, struct spf_addr *addr, resolved = g_ptr_array_index (rec->resolved, rec->resolved->len - 1); host = resolved->cur_domain; + c = p; while (*p) { t = *p; |