diff options
author | Volker Lendecke <vl@sernet.de> | 2007-12-19 17:05:26 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-19 17:15:45 +0100 |
commit | a37873490f2c4e89e98780203d13e2f21a6ecebf (patch) | |
tree | 3e5e0ed80eb5618734c623f622fa5f432cd2ed3d | |
parent | 0743d384a634ad9c124673f52b9c2d17aab1ac89 (diff) | |
download | samba-a37873490f2c4e89e98780203d13e2f21a6ecebf.tar.gz samba-a37873490f2c4e89e98780203d13e2f21a6ecebf.tar.bz2 samba-a37873490f2c4e89e98780203d13e2f21a6ecebf.zip |
packet_struct is used in several places as raw memory
-> Fix more uninitialized variable warnings
(This used to be commit 0af02db6f2f84a8ce5d614e5baec27f20b413c26)
-rw-r--r-- | source3/libsmb/nmblib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index 2ff925ef36..15a9a93ff2 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/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; |