]> granicus.if.org Git - pdns/commitdiff
Update pdns/dnsdist.cc
authorRemi Gacogne <rgacogne@users.noreply.github.com>
Fri, 15 Feb 2019 11:05:22 +0000 (14:05 +0300)
committerGitHub <noreply@github.com>
Fri, 15 Feb 2019 11:05:22 +0000 (14:05 +0300)
match on any rcode with option set

Co-Authored-By: alenichev <mitya@rockers.su>
pdns/dnsdist.cc

index ecdace0b01ac99f641123e15cc320054ed5ba631..17be543577f7e9d878828325db42ebe50e9a5e36 100644 (file)
@@ -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 {