1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3:libsmb/ntlmssp: an empty string should mean no password

metze
This commit is contained in:
Stefan Metzmacher 2012-04-16 12:32:28 +02:00
parent b0939c5774
commit 92483eee25

View File

@ -78,7 +78,7 @@ NTSTATUS ntlmssp_set_password(struct ntlmssp_state *ntlmssp_state, const char *p
{
TALLOC_FREE(ntlmssp_state->lm_hash);
TALLOC_FREE(ntlmssp_state->nt_hash);
if (!password) {
if (!password || strlen(password) == 0) {
return NT_STATUS_OK;
} else {
uint8_t lm_hash[16];