summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-05-30 07:02:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:57 -0500
commit4b70daaa59cd49afcdaa2934aee4b257f9157682 (patch)
tree40e5aaae0668c661f70635502978f701d48a04a0 /source3
parent00959280b2801d21a2e637023c8b3006c3d24ffd (diff)
downloadsamba-4b70daaa59cd49afcdaa2934aee4b257f9157682.tar.gz
samba-4b70daaa59cd49afcdaa2934aee4b257f9157682.tar.bz2
samba-4b70daaa59cd49afcdaa2934aee4b257f9157682.zip
r23236: Another bad merge: Correctly free and unlock the session record in
session_claim. Jerry, this fixes the hanging smbstatus. Sorry for that, Volker (This used to be commit 86ff82a5df998045185682cf09b2db3d37f01004)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c
index d5973ef5c3..6b1bb0cbee 100644
--- a/source3/smbd/session.c
+++ b/source3/smbd/session.c
@@ -192,10 +192,11 @@ BOOL session_claim(user_struct *vuser)
status = rec->store(rec, data, TDB_REPLACE);
+ TALLOC_FREE(rec);
+
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1,("session_claim: unable to create session id "
"record: %s\n", nt_errstr(status)));
- TALLOC_FREE(rec);
return False;
}