When running winbind under valgrind I'm seeing usage of uninitialized memory when connecting to a DC as guest. It's the SMB header that is not correctly zero'ed. Proposed patch: Index: libsmb/cliconnect.c =================================================================== --- libsmb/cliconnect.c (Revision 11959) +++ libsmb/cliconnect.c (Arbeitskopie) @@ -163,6 +163,8 @@ char *p; uint32 capabilities = cli_session_setup_capabilities(cli); + memset(cli->outbuf, '\0', smb_size); + set_message(cli->outbuf,13,0,True); SCVAL(cli->outbuf,smb_com,SMBsesssetupX); cli_setup_packet(cli);
r11975