diff options
Diffstat (limited to 'wiretap/toshiba.c')
-rw-r--r-- | wiretap/toshiba.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/toshiba.c b/wiretap/toshiba.c index 091b790884..40e605dfa4 100644 --- a/wiretap/toshiba.c +++ b/wiretap/toshiba.c @@ -311,14 +311,14 @@ parse_toshiba_packet(FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, *err_info = g_strdup("toshiba: packet header has a negative packet length"); return FALSE; } - if (pkt_len > WTAP_MAX_PACKET_SIZE) { + if (pkt_len > WTAP_MAX_PACKET_SIZE_STANDARD) { /* * Probably a corrupt capture file; don't blow up trying * to allocate space for an immensely-large packet. */ *err = WTAP_ERR_BAD_FILE; *err_info = g_strdup_printf("toshiba: File has %u-byte packet, bigger than maximum of %u", - pkt_len, WTAP_MAX_PACKET_SIZE); + pkt_len, WTAP_MAX_PACKET_SIZE_STANDARD); return FALSE; } |