diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c index 2ff925ef361..15a9a93ff29 100644 --- a/source/libsmb/nmblib.c +++ b/source/libsmb/nmblib.c @@ -740,6 +740,8 @@ struct packet_struct *parse_packet(char *buf,int length, if (!p) return(NULL); + ZERO_STRUCTP(p); /* initialize for possible padding */ + p->next = NULL; p->prev = NULL; p->ip = ip;