git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0743d38
)
packet_struct is used in several places as raw memory
author
Volker Lendecke
<vl@sernet.de>
Wed, 19 Dec 2007 16:05:26 +0000
(17:05 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 19 Dec 2007 16:15:45 +0000
(17:15 +0100)
-> Fix more uninitialized variable warnings
(This used to be commit
0af02db6f2f84a8ce5d614e5baec27f20b413c26
)
source3/libsmb/nmblib.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/nmblib.c
b/source3/libsmb/nmblib.c
index 2ff925ef361ab7dc464ef7f5c0a0836e297dde92..15a9a93ff29c37306e1ba9c0becfe929115ea085 100644
(file)
--- 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;