Fix crash bug in check_sam_security() when make_server_info_sam() did a
authorGünther Deschner <gd@samba.org>
Wed, 19 Mar 2008 23:30:01 +0000 (00:30 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 19 Mar 2008 23:54:20 +0000 (00:54 +0100)
talloc_steal and talloc_free on the sam account already.

Guenther

source/auth/auth_sam.c

index 66504a8a525aaa2fa8d046efd866e81b4ca30e26..4d25d31b565d1386c63d1873c725d142ac76887a 100644 (file)
@@ -352,7 +352,6 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
 
        if (!NT_STATUS_IS_OK(nt_status)) {
                DEBUG(0,("check_sam_security: make_server_info_sam() failed with '%s'\n", nt_errstr(nt_status)));
-               TALLOC_FREE(sampass);
                data_blob_free(&user_sess_key);
                data_blob_free(&lm_sess_key);
                return nt_status;