commit 98e36e0: [Minor] Fix misused variable
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Sep 2 13:14:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-09-02 14:07:14 +0100
URL: https://github.com/rspamd/rspamd/commit/98e36e00c8a85ebf69b43043a10aaafb34186e27 (HEAD -> master)
[Minor] Fix misused variable
---
src/libserver/spf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index bee7f68d6..9af1dd112 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -790,6 +790,7 @@ spf_process_txt_record (struct spf_record *rec, struct spf_resolved_element *res
if (strncmp(elt->content.txt.data, "v=spf1", sizeof("v=spf1") - 1)
== 0) {
selected = elt;
+
if (pselected != NULL) {
*pselected = selected;
}
@@ -809,7 +810,7 @@ spf_process_txt_record (struct spf_record *rec, struct spf_resolved_element *res
if (start_spf_parse(rec, resolved, elt->content.txt.data)) {
ret = TRUE;
if (pselected != NULL) {
- *pselected = selected;
+ *pselected = elt;
}
break;
}
More information about the Commits
mailing list