diff options
author | Gerald Carter <jerry@samba.org> | 2005-07-14 14:40:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:06 -0500 |
commit | a3a85172167eba787a61e0eb8a7c914407e593ea (patch) | |
tree | 12a6f90cc5797661a034033c5498753166cf0cda | |
parent | dae78e57e2341e519a2bb609d827968ac93a2499 (diff) | |
download | samba-a3a85172167eba787a61e0eb8a7c914407e593ea.tar.gz samba-a3a85172167eba787a61e0eb8a7c914407e593ea.tar.bz2 samba-a3a85172167eba787a61e0eb8a7c914407e593ea.zip |
r8475: BUG 2872: fix cut-n-paste error when checking pointer value in ntlmssp_set_workstation()
(This used to be commit f1763c5decd14eb71ee3d7ea71859a85d5ee0dc1)
-rw-r--r-- | source3/libsmb/ntlmssp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index 574b37d4a0..b02c2384a8 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -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; |