Revert "s3:libsmb/ntlmssp: an empty string should mean no password"
authorStefan Metzmacher <metze@samba.org>
Tue, 17 Apr 2012 06:38:10 +0000 (08:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 17 Apr 2012 12:42:31 +0000 (14:42 +0200)
This reverts commit 92483eee254ef6844fe88abe1e64f67033a1ea2d.

source3/libsmb/ntlmssp.c

index 72466fec6ceba1110eba9c247862855c10a8b6c8..b877af583a3efe4e69e734f814527e727158b115 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 || strlen(password) == 0) {
+       if (!password) {
                return NT_STATUS_OK;
        } else {
                uint8_t lm_hash[16];