forked from osmocom/wireshark
From Jakub Zawadzki:
Fix compile without zlib. svn path=/trunk/; revision=32501
This commit is contained in:
parent
e76dd3ebdb
commit
51af731c3a
|
@ -67,7 +67,9 @@ int packetlogger_open(wtap *wth, int *err, gchar **err_info _U_)
|
|||
|
||||
if(!packetlogger_read_header(&pl_hdr, wth->fh, err))
|
||||
return -1;
|
||||
file_read(&type, 1, 1, wth->fh);
|
||||
|
||||
if (file_read(&type, 1, 1, wth->fh) <= 0)
|
||||
return -1;
|
||||
|
||||
/* Verify this file belongs to us */
|
||||
if (!((8 <= pl_hdr.len) && (pl_hdr.len < 65536) &&
|
||||
|
|
|
@ -489,7 +489,8 @@ parse_vms_hex_dump(FILE_T fh, int pkt_len, guint8* buf, int *err,
|
|||
}
|
||||
/* Avoid TCPIPTRACE-W-BUFFERSFUL, TCPIPtrace could not save n packets.
|
||||
* errors. */
|
||||
file_gets(line, VMS_LINE_LENGTH, fh);
|
||||
if (!file_gets(line, VMS_LINE_LENGTH, fh))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue