From 92483eee254ef6844fe88abe1e64f67033a1ea2d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Apr 2012 12:32:28 +0200 Subject: s3:libsmb/ntlmssp: an empty string should mean no password metze --- source3/libsmb/ntlmssp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index b877af583a..72466fec6c 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -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]; -- cgit