mirror of
https://github.com/samba-team/samba.git
synced 2025-08-09 17:49:29 +03:00
Allow auth_ntlmssp_end() to ignore null pointers passed in.
Jeremy.
This commit is contained in:
@ -186,8 +186,13 @@ NTSTATUS auth_ntlmssp_start(AUTH_NTLMSSP_STATE **auth_ntlmssp_state)
|
||||
|
||||
void auth_ntlmssp_end(AUTH_NTLMSSP_STATE **auth_ntlmssp_state)
|
||||
{
|
||||
TALLOC_CTX *mem_ctx = (*auth_ntlmssp_state)->mem_ctx;
|
||||
TALLOC_CTX *mem_ctx;
|
||||
|
||||
if (*auth_ntlmssp_state == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
mem_ctx = (*auth_ntlmssp_state)->mem_ctx;
|
||||
if ((*auth_ntlmssp_state)->ntlmssp_state) {
|
||||
ntlmssp_end(&(*auth_ntlmssp_state)->ntlmssp_state);
|
||||
}
|
||||
|
Reference in New Issue
Block a user