aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/netscreen.c')
-rw-r--r--wiretap/netscreen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wiretap/netscreen.c b/wiretap/netscreen.c
index 037aba1619..afdb1adab3 100644
--- a/wiretap/netscreen.c
+++ b/wiretap/netscreen.c
@@ -322,7 +322,11 @@ netscreen_seek_read (wtap *wth, gint64 seek_off,
return FALSE;
}
- return (parse_netscreen_hex_dump(wth->random_fh, len, pd, err, err_info) != -1);
+ if (parse_netscreen_hex_dump(wth->random_fh, len, pd, err, err_info)
+ == -1) {
+ return FALSE;
+ }
+ return TRUE;
}
/* Parses a packet record header. There are a few possible formats: