aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2017-01-23 12:11:51 -0800
committerGerald Combs <gerald@wireshark.org>2017-01-23 23:24:17 +0000
commit288fb5e9b43c34271be3be0ca7c0c287323e7834 (patch)
tree5f0782e1fe21d9fd4d2cb6d4bee9f91e36255c37 /tools
parent57894f741f7cc98b46c9fdce7eee8256d2a4ae3f (diff)
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fuzz-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh
index 0a0b74c567..d763611d3b 100755
--- a/tools/fuzz-test.sh
+++ b/tools/fuzz-test.sh
@@ -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