diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-30 07:02:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:57 -0500 |
commit | 4b70daaa59cd49afcdaa2934aee4b257f9157682 (patch) | |
tree | 40e5aaae0668c661f70635502978f701d48a04a0 /source3/smbd/session.c | |
parent | 00959280b2801d21a2e637023c8b3006c3d24ffd (diff) | |
download | samba-4b70daaa59cd49afcdaa2934aee4b257f9157682.tar.gz |
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/smbd/session.c')
-rw-r--r-- | source3/smbd/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c index d5973ef5c3c..6b1bb0cbee5 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; } |