svn commit: samba r22381 - in branches/SAMBA_4_0/source/smb_server/smb: .

metze at samba.org metze at samba.org
Thu Apr 19 16:50:17 GMT 2007


Author: metze
Date: 2007-04-19 16:50:16 +0000 (Thu, 19 Apr 2007)
New Revision: 22381

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22381

Log:
fix memory leak

metze
Modified:
   branches/SAMBA_4_0/source/smb_server/smb/service.c


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb/service.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb/service.c	2007-04-19 16:37:11 UTC (rev 22380)
+++ branches/SAMBA_4_0/source/smb_server/smb/service.c	2007-04-19 16:50:16 UTC (rev 22381)
@@ -174,7 +174,7 @@
 
 	if (con->generic.level == RAW_TCON_TCON) {
 		DATA_BLOB password;
-		password = data_blob(con->tcon.in.password, strlen(con->tcon.in.password) + 1);
+		password = data_blob_string_const(con->tcon.in.password);
 
 		status = make_connection(req, con->tcon.in.service, password, con->tcon.in.dev);
 		



More information about the samba-cvs mailing list