]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb/ntlmssp: an empty string should mean no password
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Apr 2012 10:32:28 +0000 (12:32 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 16 Apr 2012 10:54:53 +0000 (12:54 +0200)
metze

source3/libsmb/ntlmssp.c

index b877af583a3efe4e69e734f814527e727158b115..72466fec6ceba1110eba9c247862855c10a8b6c8 100644 (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];