mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
r8475: BUG 2872: fix cut-n-paste error when checking pointer value in ntlmssp_set_workstation()
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
aab17a7095
commit
f1763c5dec
@@ -182,7 +182,7 @@ NTSTATUS ntlmssp_set_domain(NTLMSSP_STATE *ntlmssp_state, const char *domain)
|
|||||||
NTSTATUS ntlmssp_set_workstation(NTLMSSP_STATE *ntlmssp_state, const char *workstation)
|
NTSTATUS ntlmssp_set_workstation(NTLMSSP_STATE *ntlmssp_state, const char *workstation)
|
||||||
{
|
{
|
||||||
ntlmssp_state->workstation = talloc_strdup(ntlmssp_state->mem_ctx, workstation);
|
ntlmssp_state->workstation = talloc_strdup(ntlmssp_state->mem_ctx, workstation);
|
||||||
if (!ntlmssp_state->domain) {
|
if (!ntlmssp_state->workstation) {
|
||||||
return NT_STATUS_NO_MEMORY;
|
return NT_STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user