git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0095928
)
r23236: Another bad merge: Correctly free and unlock the session record in
author
Volker Lendecke
<vlendec@samba.org>
Wed, 30 May 2007 07:02:40 +0000
(07:02 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:22:57 +0000
(12:22 -0500)
session_claim. Jerry, this fixes the hanging smbstatus.
Sorry for that,
Volker
(This used to be commit
86ff82a5df998045185682cf09b2db3d37f01004
)
source3/smbd/session.c
patch
|
blob
|
history
diff --git
a/source3/smbd/session.c
b/source3/smbd/session.c
index d5973ef5c3cdd5729b5dfe6fb64cce14e33648bb..6b1bb0cbee5110a9d6d42134224aeb026939c47f 100644
(file)
--- 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;
}