summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);