summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-10-31 12:28:40 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-10-31 12:28:40 +0000
commitbdca4e32aa1449385778d43102cce431c85f9e91 (patch)
tree5506f017c6bd72f8827ae6d9a41a238ffb7f176d /source3/smbd
parentbe93100240c4d81e9465015e82d5b71a5e4bf193 (diff)
downloadsamba-bdca4e32aa1449385778d43102cce431c85f9e91.tar.gz
samba-bdca4e32aa1449385778d43102cce431c85f9e91.tar.bz2
samba-bdca4e32aa1449385778d43102cce431c85f9e91.zip
When you make a data_blob() then you probably need to free it too...
(This used to be commit 531e24973227ca4f1ae65ffb2454aedd5871de96)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index b60738d23d..8a1fecba3f 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -179,6 +179,8 @@ int reply_tcon(connection_struct *conn,
password_blob = data_blob(password, pwlen+1);
conn = make_connection(service,password_blob,dev,vuid,&nt_status);
+
+ data_blob_clear_free(&password);
if (!conn) {
END_PROFILE(SMBtcon);
@@ -257,6 +259,8 @@ int reply_tcon_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
conn = make_connection(service,password,devicename,vuid,&nt_status);
+ data_blob_clear_free(&password);
+
if (!conn) {
END_PROFILE(SMBtconX);
return ERROR_NT(nt_status);