r23236: Another bad merge: Correctly free and unlock the session record in
authorVolker Lendecke <vlendec@samba.org>
Wed, 30 May 2007 07:02:40 +0000 (07:02 +0000)
committerGerald (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

source/smbd/session.c

index d5973ef5c3cdd5729b5dfe6fb64cce14e33648bb..6b1bb0cbee5110a9d6d42134224aeb026939c47f 100644 (file)
@@ -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;
        }