aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-10 13:04:35 +0100
committerGitHub <noreply@github.com>2018-08-10 13:04:35 +0100
commit0646d5791609b74d9b64cc4d0842c44f6b48f92e (patch)
treeec60a35cec41834b5256d3e87f52a6d3b071ed50
parente2e3a410dc826bbd24a8d4a22af12cf4ff7a3189 (diff)
parentb82771f99c0e8ef236db4e9e10ca1eb665c5daba (diff)
downloadrspamd-0646d5791609b74d9b64cc4d0842c44f6b48f92e.tar.gz
rspamd-0646d5791609b74d9b64cc4d0842c44f6b48f92e.zip
Merge pull request #2411 from negram/fix-mx-faking
[Minor] Fixed parsing of faked mx-record:
-rw-r--r--src/libserver/dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c
index d75ad00e8..81b01c49b 100644
--- a/src/libserver/dns.c
+++ b/src/libserver/dns.c
@@ -385,8 +385,8 @@ rspamd_dns_resolver_config_ucl (struct rspamd_config *cfg,
svec = g_strsplit_set (str_rep, " :", -1);
if (svec && svec[0] && svec[1]) {
- rep->content.mx.name = strdup (svec[0]);
- rep->content.mx.priority = strtoul (svec[1], NULL, 10);
+ rep->content.mx.priority = strtoul (svec[0], NULL, 10);
+ rep->content.mx.name = strdup (svec[1]);
DL_APPEND (replies, rep);
}
else {