From 3c564548962ae4bca2fbc565acac68023170d94b Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 27 Sep 2016 13:51:11 +0200 Subject: [PATCH] [Minor] Don't hide errors in librdns --- contrib/librdns/resolver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5