From: Andrew Lewis Date: Tue, 27 Sep 2016 11:51:11 +0000 (+0200) Subject: [Minor] Don't hide errors in librdns X-Git-Tag: 1.4.0~368^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c564548962ae4bca2fbc565acac68023170d94b;p=thirdparty%2Frspamd.git [Minor] Don't hide errors in librdns --- diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c index 8c5df913f0..d6ddea5769 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;