Wireshark-commits: [Wireshark-commits] master-1.12 be26f8e: Don't allocate the interfaces array unt

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 16 Oct 2014 00:01:23 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=be26f8efd68e1d0621d77cec4b3ec359ebc922f8
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.12
Repository: wireshark

Commits:

be26f8e by Guy Harris (guy@xxxxxxxxxxxx):

    Don't allocate the interfaces array until we've read the SHB.
    
    Nothing from the SHB gets stored in the interfaces array - it's filled
    in from IDBs - so it doesn't need to exist when we read the first SHB,
    and thus doesn't need to be freed if the attempt to read the SHB gets an
    error or a "this isn't a pcap-ng file" indication.
    
    Change-Id: I97cbec1cb12d1348d009001ea6ede740ad22b70e
    Reviewed-on: https://code.wireshark.org/review/4712
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  e7862f4   IPv6: Calipso option length is not used properly
    adds  be26f8e   Don't allocate the interfaces array until we've read the SHB.


Summary of changes:
 wiretap/pcapng.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)