1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

r2797: don't free the server_info before using it for anonymous connections

This commit is contained in:
Andrew Tridgell
2004-10-03 07:32:08 +00:00
committed by Gerald (Jerry) Carter
parent cd43def6ce
commit 5f5b04196c

View File

@ -128,9 +128,6 @@ static NTSTATUS sesssetup_nt1(struct smbsrv_request *req, union smb_sesssetup *s
status = auth_context->check_ntlm_password(auth_context,
user_info,
&server_info);
free_auth_context(&auth_context);
} else {
TALLOC_CTX *mem_ctx = talloc_init("NT1 session setup");
char *remote_machine;
@ -165,6 +162,8 @@ static NTSTATUS sesssetup_nt1(struct smbsrv_request *req, union smb_sesssetup *s
return nt_status_squash(status);
}
talloc_steal(session_info, server_info);
sess->nt1.out.action = 0;
sess->nt1.out.vuid = smbsrv_register_session(req->smb_conn, session_info, NULL);
if (sess->nt1.out.vuid == UID_FIELD_INVALID) {