4574. [bug] Dig leaked memory with multiple +subnet options.

[RT #44683]
This commit is contained in:
Mark Andrews
2017-02-14 15:52:40 +11:00
parent 1df7a6fed6
commit af2b20ee3f
4 changed files with 17 additions and 1 deletions

View File

@@ -269,6 +269,14 @@ if [ -x ${DIG} ] ; then
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:checking dig +subnet +subnet ($n)"
ret=0
$DIG $DIGOPTS +tcp @10.53.0.2 +subnet=127.0.0.0 +subnet=127.0.0.1 A a.example > dig.out.test$n 2>&1 || ret=1
grep "CLIENT-SUBNET: 127.0.0.1/32/0" < dig.out.test$n > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:checking dig +subnet with various prefix lengths ($n)"
ret=0