summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/auth/auth_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 6ec19da61a..02eaf9d8c1 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -420,7 +420,7 @@ bool make_user_info_for_reply(struct auth_usersupplied_info **user_info,
DEBUG(5,("make_user_info_for_reply: User passwords not in encrypted "
"format.\n"));
- if (plaintext_password.data) {
+ if (plaintext_password.data && plaintext_password.length) {
unsigned char local_lm_response[24];
#ifdef DEBUG_PASSWORD
@@ -448,7 +448,7 @@ bool make_user_info_for_reply(struct auth_usersupplied_info **user_info,
local_lm_blob.data ? &local_lm_blob : NULL,
local_nt_blob.data ? &local_nt_blob : NULL,
NULL, NULL,
- plaintext_password.data ? &plaintext_password : NULL,
+ plaintext_password.data && plaintext_password.length ? &plaintext_password : NULL,
False);
data_blob_free(&local_lm_blob);