dereference ->next containing an arbitrary value.
Bug: 13418
Change-Id: I240bc03e652ede557083379cc81b81ae83d720e5
Reviewed-on: https://code.wireshark.org/review/20235
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
/*
* Allocate the interface capabilities structure.
*/
- caps = (if_capabilities_t *)g_malloc(sizeof *caps);
+ caps = (if_capabilities_t *)g_malloc0(sizeof *caps);
auth.type = interface_opts->auth_type == CAPTURE_AUTH_PWD ?
RPCAP_RMTAUTH_PWD : RPCAP_RMTAUTH_NULL;