[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-728-g0af02db

Volker Lendecke vl at samba.org
Wed Dec 19 16:12:50 GMT 2007


The branch, v3-2-test has been updated
       via  0af02db6f2f84a8ce5d614e5baec27f20b413c26 (commit)
      from  ff644cfa1b123e9d0f8f4817504e5b209b85dedd (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 0af02db6f2f84a8ce5d614e5baec27f20b413c26
Author: Volker Lendecke <vl at sernet.de>
Date:   Wed Dec 19 17:05:26 2007 +0100

    packet_struct is used in several places as raw memory
    
    -> Fix more uninitialized variable warnings

-----------------------------------------------------------------------

Summary of changes:
 source/libsmb/nmblib.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c
index 2ff925e..15a9a93 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;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list