Changeset fc6def2 for lib


Ignore:
Timestamp:
07/01/18 00:34:54 (2 years ago)
Author:
Richard Sanger <rsanger@…>
Branches:
cachetimestamps, develop, master, rc-4.0.4, ringdecrementfix, ringperformance
Children:
e9da777
Parents:
e17bad6
Message:

Zero newly created pcapng interface pointers

As we iterate through these to free them in 'fin' we really
should zero them to begin with.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapng.c

    re17bad6 rfc6def2  
    591591                        DATA(libtrace)->allocatedinterfaces * sizeof(
    592592                                pcapng_interface_t *));
    593 
    594                 /* Could memset the new memory to zero, if required */
     593                memset(&DATA(libtrace)->interfaces[DATA(libtrace)->nextintid], 0, sizeof(void *) * 10);
    595594        }
    596595
Note: See TracChangeset for help on using the changeset viewer.