diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-10-31 12:28:40 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-10-31 12:28:40 +0000 |
commit | bdca4e32aa1449385778d43102cce431c85f9e91 (patch) | |
tree | 5506f017c6bd72f8827ae6d9a41a238ffb7f176d /source3/smbd/reply.c | |
parent | be93100240c4d81e9465015e82d5b71a5e4bf193 (diff) | |
download | samba-bdca4e32aa1449385778d43102cce431c85f9e91.tar.gz samba-bdca4e32aa1449385778d43102cce431c85f9e91.tar.xz 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/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index b60738d23d6..8a1fecba3ff 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); |