mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
pcap: Zero the pcap structure.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
This commit is contained in:
@@ -122,7 +122,15 @@ struct ssh_pcap_file_struct {
|
|||||||
* @brief create a new ssh_pcap_file object
|
* @brief create a new ssh_pcap_file object
|
||||||
*/
|
*/
|
||||||
ssh_pcap_file ssh_pcap_file_new(){
|
ssh_pcap_file ssh_pcap_file_new(){
|
||||||
return malloc(sizeof(struct ssh_pcap_file_struct));
|
struct ssh_pcap_file_struct *pcap;
|
||||||
|
|
||||||
|
pcap = malloc(sizeof(struct ssh_pcap_file_struct));
|
||||||
|
if (pcap == NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
ZERO_STRUCTP(pcap);
|
||||||
|
|
||||||
|
return pcap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal
|
/** @internal
|
||||||
|
|||||||
Reference in New Issue
Block a user