URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=378bdbfb3f49de5ebe9bd175c5a8e7698bc06a24
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
378bdbf by Guy Harris (guy@xxxxxxxxxxxx):
Distinguish between read errors and short reads when opening.
Use wtap_read_bytes() which will return WTAP_ERR_SHORT_READ if we don't
get the specified number of bytes. Treat all errors *other* than
WTAP_ERR_SHORT_READ as an I/O error.
Change-Id: If38b5ad1b142441f2f2dd356be196bf381058da4
Reviewed-on: https://code.wireshark.org/review/14997
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from b13d9b6 Open routines are called with the seek pointer at the beginning.
adds 378bdbf Distinguish between read errors and short reads when opening.
Summary of changes:
wiretap/mplog.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)