4539. [bug] Referencing a nonexistant zone with rpz could lead

to a assertion failure when configuring. [RT #43787]

(cherry picked from commit 762c4fc5a8)
This commit is contained in:
Mark Andrews
2016-12-27 08:59:07 +11:00
parent 458e816ed0
commit 23ac7e6634
7 changed files with 98 additions and 52 deletions

View File

@@ -38,8 +38,10 @@ for bad in bad-*.conf
do
ret=0
echo "I: checking that named-checkconf detects error in $bad"
$CHECKCONF $bad > /dev/null 2>&1
if [ $? != 1 ]; then echo "I:failed"; ret=1; fi
$CHECKCONF $bad > checkconf.out 2>&1
if [ $? != 1 ]; then ret=1; fi
grep "^$bad:[0-9]*: " checkconf.out > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
done