Wireshark-commits: [Wireshark-commits] master-1.10 74fa8e3: Add file_error() calls after file_read(

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 20 Sep 2014 18:32:51 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=74fa8e33b9720afe984e587f49d6f0d5d225a7d6
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.10
Repository: wireshark

Commits:

74fa8e3 by Guy Harris (guy@xxxxxxxxxxxx):

    Add file_error() calls after file_read().
    
    If file_read() doesn't return the exact number of bytes you asked for,
    and you really need all those bytes to be there, you have to call
    file_error() to find out what the problem is.
    
    Change-Id: I4cc87bc1b6cc5a49bbcbf93b56106f57af290d20
    Reviewed-on: https://code.wireshark.org/review/4205
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 32c38a4ecc7fc4f07349b0fbc13f7754be897546)
    Reviewed-on: https://code.wireshark.org/review/4207
    

Actions performed:

    from  7199e55   Set err_info if the attempts to read record headers fail.
    adds  74fa8e3   Add file_error() calls after file_read().


Summary of changes:
 wiretap/nettl.c |    3 +++
 1 file changed, 3 insertions(+)