summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-09-27 13:51:11 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-09-27 15:28:33 +0200
commit3c564548962ae4bca2fbc565acac68023170d94b (patch)
tree00d98846baf144073d73f03aabfd42e11e3d08a6 /contrib
parent8f6dc30fef1f81d25f21342f08682653e8b16de2 (diff)
downloadrspamd-3c564548962ae4bca2fbc565acac68023170d94b.tar.gz
rspamd-3c564548962ae4bca2fbc565acac68023170d94b.zip
[Minor] Don't hide errors in librdns
Diffstat (limited to 'contrib')
-rw-r--r--contrib/librdns/resolver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c
index 8c5df913f..d6ddea576 100644
--- a/contrib/librdns/resolver.c
+++ b/contrib/librdns/resolver.c
@@ -230,7 +230,9 @@ rdns_parse_reply (uint8_t *in, int r, struct rdns_request *req,
if (!found && type != RDNS_REQUEST_ANY) {
/* We have not found the requested RR type */
- rep->code = RDNS_RC_NOREC;
+ if (rep->code == RDNS_RC_NOERROR) {
+ rep->code = RDNS_RC_NOREC;
+ }
}
*_rep = rep;