mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
add test for bad dig option '+ednsopt=:' being handled gracefully
This commit is contained in:
@@ -493,6 +493,14 @@ if [ -x ${DIG} ] ; then
|
|||||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
|
n=`expr $n + 1`
|
||||||
|
echo_i "check that dig handles malformed option '+ednsopt=:' gracefully ($n)"
|
||||||
|
ret=0
|
||||||
|
$DIG $DIGOPTS @10.53.0.3 +ednsopt=: a.example > dig.out.test$n 2>&1 && ret=1
|
||||||
|
grep "ednsopt no code point specified" dig.out.test$n > /dev/null || ret=1
|
||||||
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||||
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
echo_i "check that dig gracefully handles bad escape in domain name ($n)"
|
echo_i "check that dig gracefully handles bad escape in domain name ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
|
Reference in New Issue
Block a user