diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-09-27 13:51:11 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-09-27 15:28:33 +0200 |
commit | 3c564548962ae4bca2fbc565acac68023170d94b (patch) | |
tree | 00d98846baf144073d73f03aabfd42e11e3d08a6 /contrib/librdns | |
parent | 8f6dc30fef1f81d25f21342f08682653e8b16de2 (diff) | |
download | rspamd-3c564548962ae4bca2fbc565acac68023170d94b.tar.gz rspamd-3c564548962ae4bca2fbc565acac68023170d94b.zip |
[Minor] Don't hide errors in librdns
Diffstat (limited to 'contrib/librdns')
-rw-r--r-- | contrib/librdns/resolver.c | 4 |
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; |