Fuzz: Fix the capinfos check (again).

Capinfos might return 1 *or* 2 for an invalid capture.

Change-Id: I1ff2ed2a5b252a77a894ad3fe10c983e9a2a1bc0
Reviewed-on: https://code.wireshark.org/review/19752
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2017-01-23 12:11:51 -08:00
parent 57894f741f
commit 288fb5e9b4
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do
"$CAPINFOS" "$CF" > /dev/null 2> $TMP_DIR/$ERR_FILE
RETVAL=$?
if [ $RETVAL -eq 2 ] ; then
if [ $RETVAL -eq 1 -o $RETVAL -eq 2 ] ; then
echo "Not a valid capture file"
rm -f $TMP_DIR/$ERR_FILE
continue