Wireshark-bugs: [Wireshark-bugs] [Bug 1601] pppdump wiretap fails on 0-length packets

Date: Wed, 16 May 2007 17:43:27 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1601





------- Comment #3 from jaap.keuter@xxxxxxxxx  2007-05-16 17:43 GMT -------
Shouldn't this move down to here?

                                if (pkt->id_offset == 0) {
                                        /*
                                         * We don't have the initial data
                                         * offset for this packet, which
                                         * means this is the first
                                         * data record for that packet.
                                         * Save the offset of the
                                         * beginning of that record and
                                         * the offset of the first data
                                         * byte in the packet, which is
                                         * the first data byte in the
                                         * record.
                                         */
                                        pkt->id_offset = pkt->cd_offset;
                                        pkt->sd_offset = state->offset;
                                }

+                               if (n == 0)
+                                       continue;

                                g_assert(num_bytes_to_skip < n);


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.