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:
01b5cda
)
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:11:02 +0000
(17:11 +0100)
-> Fix more uninitialized variable warnings
source/libsmb/nmblib.c
patch
|
blob
|
history
diff --git
a/source/libsmb/nmblib.c
b/source/libsmb/nmblib.c
index 5280dfdbffabbc9ac335e59f60f2430c620c015f..641473bea17e87d0d845b941886493fcf0fddc40 100644
(file)
--- a/
source/libsmb/nmblib.c
+++ b/
source/libsmb/nmblib.c
@@
-702,6
+702,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 = lastip;