forked from osmocom/wireshark
Update fuzz-test to match capinfos behavior.
As of gebd3dc6, capinfos returns 2 for invalid capture files. Change-Id: I00c1ab44c9929a9e922ac2a1ee8904632c1e460f Reviewed-on: https://code.wireshark.org/review/19667 Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
parent
cf941613da
commit
ddb0f7d23c
|
@ -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 1 ] ; then
|
||||
if [ $RETVAL -eq 2 ] ; then
|
||||
echo "Not a valid capture file"
|
||||
rm -f $TMP_DIR/$ERR_FILE
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue