Fix for bug 5762, wireshark asserts on reading juniper snoop output when no hex data...
[obnox/wireshark/wip.git] / wiretap / netscreen.c
index d8ce51b5ff9c9e98b8be392d4bbf623893af14e8..037aba1619f9dba3a40f4f86899171a3b59d3648 100644 (file)
@@ -322,7 +322,7 @@ netscreen_seek_read (wtap *wth, gint64 seek_off,
                return FALSE;
        }
 
-       return parse_netscreen_hex_dump(wth->random_fh, len, pd, err, err_info);
+       return (parse_netscreen_hex_dump(wth->random_fh, len, pd, err, err_info) != -1);
 }
 
 /* Parses a packet record header. There are a few possible formats: