1
0
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:
Gerald Carter
2005-07-14 14:40:30 +00:00
committed by Gerald (Jerry) Carter
parent aab17a7095
commit f1763c5dec

View File

@@ -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)
{
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_OK;