diff options
author | Sake Blok <sake@euronet.nl> | 2007-10-28 18:52:45 +0000 |
---|---|---|
committer | Sake Blok <sake@euronet.nl> | 2007-10-28 18:52:45 +0000 |
commit | f0313f6407922f0c9596feca952d55de0a51c2d6 (patch) | |
tree | 20343cd1ec6f6b45a9f99d8c0a30a739fa14ccf0 /wiretap | |
parent | 851915356781f8bf453bf2b54e97a3aff1fad781 (diff) |
Bug 1751: From Allan M. Madsen :
When trying to open a pcap file with the new pseudo-header/DLT (using SVN
version, changelist 23283) I get the error message:
"libpcap: ERF file has a 13-byte packet, too small to have even an ERF
pseudo-header".
After reviewing Paolo's patch I found that there are 2 places with missing
breaks in switch case structures.
svn path=/trunk/; revision=23298
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/libpcap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index b0b1494e2f..7d502c98e8 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -1426,6 +1426,7 @@ static gboolean libpcap_read(wtap *wth, int *err, gchar **err_info, orig_size -= sizeof (struct libpcap_bt_phdr); packet_size -= sizeof (struct libpcap_bt_phdr); wth->data_offset += sizeof (struct libpcap_bt_phdr); + break; case WTAP_ENCAP_ERF: if (packet_size < sizeof(struct erf_phdr) ) { @@ -2439,6 +2440,7 @@ wtap_process_pcap_packet(gint linktype, const struct pcap_pkthdr *phdr, whdr->len -= size; whdr->caplen -= size; pd += size; + break; case WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR: if (whdr->caplen < sizeof (struct libpcap_bt_phdr)) { |