summaryrefslogtreecommitdiffstats
path: root/contrib/librdns
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-27 14:35:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-27 14:35:15 +0100
commitd0522a15042bb89f8639566647a9791537c3b613 (patch)
tree22e381332bd5f2535f69b9c9da51edd6463b1575 /contrib/librdns
parent635da93b871193283b42dac854bb1c4c4dec67da (diff)
downloadrspamd-d0522a15042bb89f8639566647a9791537c3b613.tar.gz
rspamd-d0522a15042bb89f8639566647a9791537c3b613.zip
[Minor] Fix parsing of 'nxdomain' rcode
Diffstat (limited to 'contrib/librdns')
-rw-r--r--contrib/librdns/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/librdns/util.c b/contrib/librdns/util.c
index 0f701f1bd..4a44fe0d7 100644
--- a/contrib/librdns/util.c
+++ b/contrib/librdns/util.c
@@ -302,6 +302,9 @@ rdns_rcode_fromstr (const char *str)
else if (strcmp (str, "servfail") == 0) {
return RDNS_RC_SERVFAIL;
}
+ else if (strcmp (str, "nxdomain") == 0) {
+ return RDNS_RC_NXDOMAIN;
+ }
else if (strcmp (str, "notimp") == 0) {
return RDNS_RC_NOTIMP;
}