Wireshark-commits: [Wireshark-commits] master 576f33f: In pcapng_open(), don't use the local pcapng

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

Commits:

576f33f 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>
    

Actions performed:

    from  a68627a   version: include version information for tarballs from git
     add  576f33f   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(-)