From: Pieter Lexis Date: Mon, 16 Oct 2017 15:20:38 +0000 (+0200) Subject: BIND: reject zones without 'file' stanza X-Git-Tag: auth-4.0.5~1^2~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e36ed3267f6e3e2bf501ab28348cd7cea98801fd;p=thirdparty%2Fpdns.git BIND: reject zones without 'file' stanza Closes #5786 (cherry picked from commit 6808f3b5faf6ffc4bea8f78107be99766d2be75c) --- diff --git a/modules/bindbackend/bindbackend2.cc b/modules/bindbackend/bindbackend2.cc index 3baf25ebb4..2ec75f2df8 100644 --- a/modules/bindbackend/bindbackend2.cc +++ b/modules/bindbackend/bindbackend2.cc @@ -806,6 +806,12 @@ void Bind2Backend::loadConfig(string* status) i!=domains.end(); ++i) { + if (!(i->hadFileDirective)) { + L<name<<"' has no 'file' directive set in "<type == "") { L<name<<"' because it has no type specified"< masters; set alsoNotify; string type; + bool hadFileDirective; dev_t d_dev; ino_t d_ino;