From: Remi Gacogne Date: Fri, 15 Feb 2019 11:05:22 +0000 (+0300) Subject: Update pdns/dnsdist.cc X-Git-Tag: auth-4.2.0-beta1~4^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad7ec9a25521798bdb1388a3a4406c5bdebc3377;p=pdns Update pdns/dnsdist.cc match on any rcode with option set Co-Authored-By: alenichev --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index ecdace0b0..17be54357 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -223,7 +223,7 @@ bool responseContentMatches(const char* response, const uint16_t responseLen, co } if (dh->qdcount == 0) { - if (dh->rcode != RCode::NXDomain && g_allowEmptyResponse) { + if ((dh->rcode != RCode::NoError && dh->rcode != RCode::NXDomain) || g_allowEmptyResponse) { return true; } else {