Wireshark-commits: [Wireshark-commits] rev 36744: /trunk/wiretap/ /trunk/wiretap/: file_wrappers.c
Date: Wed, 20 Apr 2011 21:36:25 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=36744

User: guy
Date: 2011/04/20 02:36 PM

Log:
 Always check whether NEXT() failed - and rename it to GZ_GETC(), as it
 has semantics similar to getc().
 
 If it fails due to an EOF, set state->err to WTAP_ERR_SHORT_READ to
 report a premature EOF; otherwise, raw_read() has already set
 state->err, so don't set state->err to something else - that loses the
 errno value in favor of a generic "bad data" error.

Directory: /trunk/wiretap/
  Changes    Path               Action
  +169 -44   file_wrappers.c    Modified