summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-19 16:50:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:11 -0500
commitc13a4084f217cdda8d24851acdbd86dce9a76fea (patch)
treee48e5e2a9cdfdcb8b14e07841542be85a35fffec /source4/smb_server
parentfdae545292ef8c78140e4b8fedb25b83d8d6d5f4 (diff)
downloadsamba-c13a4084f217cdda8d24851acdbd86dce9a76fea.tar.gz
samba-c13a4084f217cdda8d24851acdbd86dce9a76fea.tar.bz2
samba-c13a4084f217cdda8d24851acdbd86dce9a76fea.zip
r22381: fix memory leak
metze (This used to be commit 4bfe900d1b4bd037ce0115cf34761066f667beb6)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb/service.c2
1 files changed, 1 insertions, 1 deletions
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);