Wireshark-commits: [Wireshark-commits] master-2.4 05bfcae: In pcapng_open(), don't use the local pc

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 16 May 2019 18:27:48 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=05bfcae04b0b75740e68a4c8e7610812ff153178
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.4
Repository: wireshark

Commits:

05bfcae by Guy Harris (guy@xxxxxxxxxxxx):

    In pcapng_open(), don't use the local pcapng_t once we know it's a pcapng file.
    
    Use the local one *only* while we're trying to determine whether we have
    a pcapng file or not; once we know we have a pcapng file, and have
    allocated a pcapng_t and attached it to the wtap structure, pass *that*
    one to pcapng_read_block(), so if it changes anything in the pcapng_t,
    it changes the one we're using.
    
    Change-Id: I53b32595276be97957a0b6056171471878fa40c4
    Reviewed-on: https://code.wireshark.org/review/33226
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 576f33fffd4384d869ae516aa3f346d2ce0b4c6b)
    Reviewed-on: https://code.wireshark.org/review/33229
    

Actions performed:

    from  b8b7f50   Keep and use per-interface, not per-file, FCS length information.
     add  05bfcae   In pcapng_open(), don't use the local pcapng_t once we know it's a pcapng file.


Summary of changes:
 wiretap/pcapng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)