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:
parent
b0939c5774
commit
92483eee25
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user