mirror of
https://github.com/samba-team/samba.git
synced 2025-01-19 10:03:58 +03:00
r2797: don't free the server_info before using it for anonymous connections
(This used to be commit 5f5b04196c7930c91e6c00e0276f25f88181b317)
This commit is contained in:
parent
c5722fb81b
commit
c4bf8c5b2c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user