summaryrefslogtreecommitdiff
path: root/libcli/auth/smbencrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/auth/smbencrypt.c')
-rw-r--r--libcli/auth/smbencrypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c
index ec819cd4db3..e9eaadf48a7 100644
--- a/libcli/auth/smbencrypt.c
+++ b/libcli/auth/smbencrypt.c
@@ -766,12 +766,12 @@ WERROR decode_wkssvc_join_password_buffer(TALLOC_CTX *mem_ctx,
*pwd = NULL;
if (!pwd_buf) {
- return WERR_BAD_PASSWORD;
+ return WERR_INVALID_PASSWORD;
}
if (session_key->length != 16) {
DEBUG(10,("invalid session key\n"));
- return WERR_BAD_PASSWORD;
+ return WERR_INVALID_PASSWORD;
}
confounded_session_key = data_blob_talloc(mem_ctx, NULL, 16);
@@ -788,7 +788,7 @@ WERROR decode_wkssvc_join_password_buffer(TALLOC_CTX *mem_ctx,
if (!decode_pw_buffer(mem_ctx, buffer, pwd, &pwd_len, CH_UTF16)) {
data_blob_free(&confounded_session_key);
- return WERR_BAD_PASSWORD;
+ return WERR_INVALID_PASSWORD;
}
data_blob_free(&confounded_session_key);