Wireshark-commits: [Wireshark-commits] rev 54544: /trunk/wiretap/ /trunk/wiretap/: ngsniffer.c

Date: Wed, 01 Jan 2014 23:22:54 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=54544

User: guy
Date: 2014/01/01 11:22 PM

Log:
 If the uncompression buffers are empty, they have no data; set the count
 of bytes in them to 0, as there's no data in them, and set the offset in
 that buffer of the stream's current position, to 0, as we're currently
 at the beginning of the file in both streams.
 
 This fixes some tricky-to-reproduce errors (which show up only if the
 ngsniffer_t structure is allocated from data that's been allocated,
 written to in those variables, and freed).
 
 #BACKPORT 1.8, 1.10

Directory: /trunk/wiretap/
  Changes    Path           Action
  +4 -0      ngsniffer.c    Modified