summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-04-16 12:32:28 +0200
committerStefan Metzmacher <metze@samba.org>2012-04-16 12:54:53 +0200
commit92483eee254ef6844fe88abe1e64f67033a1ea2d (patch)
tree7cc654183cefbb126e4a8aefc89310790b4623ea
parentb0939c5774ee4cd4d385309c98eed6893a10381b (diff)
downloadsamba-92483eee254ef6844fe88abe1e64f67033a1ea2d.tar.gz
samba-92483eee254ef6844fe88abe1e64f67033a1ea2d.tar.bz2
samba-92483eee254ef6844fe88abe1e64f67033a1ea2d.zip
s3:libsmb/ntlmssp: an empty string should mean no password
metze
-rw-r--r--source3/libsmb/ntlmssp.c2
1 files changed, 1 insertions, 1 deletions
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];