]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
ret was not being set to 1 on dig error. [RT #46990]
authorMark Andrews <marka@isc.org>
Sat, 13 Jan 2018 02:14:42 +0000 (13:14 +1100)
committerMark Andrews <marka@isc.org>
Sat, 13 Jan 2018 02:16:33 +0000 (13:16 +1100)
(cherry picked from commit 69c4c987f685c27f0fc7018a0b7b5f560d8276ce)

bin/tests/system/rndc/tests.sh

index 4a1a14bb63031462886ecf8a14ce91ede663daa8..fc602ae35c658f3695b4f1a9dc74f1e4e5562d81 100644 (file)
@@ -450,13 +450,13 @@ ret=0
 $RNDC -s 10.53.0.4 -p 9956 -c ns4/key6.conf querylog on >/dev/null 2>&1 || ret=1
 grep "query logging is now on" ns4/named.run > /dev/null || ret=1
 # query for builtin and check if query was logged
-$DIG @10.53.0.4 -p 5300 -c ch -t txt foo12345.bind > /dev/null || ret 1
+$DIG @10.53.0.4 -p 5300 -c ch -t txt foo12345.bind > /dev/null || ret=1
 grep "query: foo12345.bind CH TXT" ns4/named.run > /dev/null || ret=1
 # toggle query logging and check again
 $RNDC -s 10.53.0.4 -p 9956 -c ns4/key6.conf querylog > /dev/null 2>&1 || ret=1
 grep "query logging is now off" ns4/named.run > /dev/null || ret=1
 # query for another builtin zone and check if query was logged
-$DIG @10.53.0.4 -p 5300 -c ch -t txt foo9876.bind > /dev/null || ret 1
+$DIG @10.53.0.4 -p 5300 -c ch -t txt foo9876.bind > /dev/null || ret=1
 grep "query: foo9876.bind CH TXT" ns4/named.run > /dev/null && ret=1
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`