From: bert hubert Date: Fri, 19 Feb 2016 20:56:33 +0000 (+0100) Subject: refuse to validate empty space - @zaphodb, this may be your crash X-Git-Tag: auth-4.0.0-alpha2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c157af2f3a8854195c93274e39872e3294900e40;p=pdns refuse to validate empty space - @zaphodb, this may be your crash --- diff --git a/pdns/validate-recursor.cc b/pdns/validate-recursor.cc index 2012ed620..af3f18b06 100644 --- a/pdns/validate-recursor.cc +++ b/pdns/validate-recursor.cc @@ -25,6 +25,9 @@ public: vState validateRecords(const vector& recs) { + if(recs.empty()) + return Insecure; // can't secure nothing + cspmap_t cspmap=harvestCSPFromRecs(recs); // cerr<<"Got "<