From 0b31e67e0781d1baea37aa64c8f3ea3dc9c8a02a Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 2 Mar 2016 15:02:12 +0100 Subject: [PATCH] reinstate old behaviour that we do process authoritative responses that are header only to hasten the timeout --- pdns/pdns_recursor.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 3042f8e5de..3d56ab172d 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1949,11 +1949,12 @@ void handleUDPServerResponse(int fd, FDMultiplexer::funcparam_t& var) } else { try { - pident.domain=DNSName(data, len, 12, false, &pident.type); // don't copy this from above - we need to do the actual read + if(len > 12) + pident.domain=DNSName(data, len, 12, false, &pident.type); // don't copy this from above - we need to do the actual read } catch(std::exception& e) { g_stats.serverParseError++; // won't be fed to lwres.cc, so we have to increment - L<