From c13a4084f217cdda8d24851acdbd86dce9a76fea Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 19 Apr 2007 16:50:16 +0000 Subject: r22381: fix memory leak metze (This used to be commit 4bfe900d1b4bd037ce0115cf34761066f667beb6) --- source4/smb_server/smb/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/smb_server') diff --git a/source4/smb_server/smb/service.c b/source4/smb_server/smb/service.c index b396d2b605..39caf3789c 100644 --- a/source4/smb_server/smb/service.c +++ b/source4/smb_server/smb/service.c @@ -174,7 +174,7 @@ NTSTATUS smbsrv_tcon_backend(struct smbsrv_request *req, union smb_tcon *con) 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); -- cgit