3696. [bug] dig failed to handle AXFR style IXFR responses which

span multiple messages. [RT #35137]
This commit is contained in:
Mark Andrews
2014-01-06 06:22:30 +11:00
parent 2b258a1f5b
commit e9649ece3b
7 changed files with 27 additions and 1 deletions

View File

@@ -237,6 +237,17 @@ else
echo "I: success: IXFR it was"
fi
echo "I:testing DiG's handling of a multi message AXFR style IXFR response"
(
(sleep 10 && kill $$) 2>/dev/null &
sub=$!
$DIG ixfr=0 large -p 5300 @10.53.0.3 > dig.out
kill $sub
)
lines=`grep hostmaster.large dig.out | wc -l`
test ${lines:-0} -eq 2 || { echo "I:failed"; status=1; }
messages=`sed -n 's/^;;.*messages \([0-9]*\),.*/\1/p' dig.out`
test ${messages:-0} -gt 1 || { echo "I:failed"; status=1; }
echo "I:exit status: $status"
exit $status