diff options
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; |