summaryrefslogtreecommitdiffstats
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
commit86ff82a5df998045185682cf09b2db3d37f01004 (patch)
treedca281f4e371b12d80e7022901d8f58dc568cc7b
parent553fe9245165ce4a14902daa722935c94ff32d61 (diff)
downloadsamba-86ff82a5df998045185682cf09b2db3d37f01004.tar.gz
samba-86ff82a5df998045185682cf09b2db3d37f01004.tar.xz
samba-86ff82a5df998045185682cf09b2db3d37f01004.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
-rw-r--r--source/smbd/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/session.c b/source/smbd/session.c
index d5973ef5c3c..6b1bb0cbee5 100644
--- a/source/smbd/session.c
+++ b/source/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;
}