summaryrefslogtreecommitdiff
path: root/libcli/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-03-26 11:00:10 +0100
committerGünther Deschner <gd@samba.org>2015-03-27 01:26:17 +0100
commit6e5d9c2a3d57576303cec75ee5806b5e8bf28c87 (patch)
tree14543b510cfa5faa901e6432ea324d6766352de9 /libcli/auth
parent17e8ad537967f8f5de73c70c79bc06d259bba4ef (diff)
downloadsamba-6e5d9c2a3d57576303cec75ee5806b5e8bf28c87.tar.gz
libcli/auth: use WERR_INVALID_PASSWORD instead of WERR_BAD_PASSWORD
The values are the same, but WERR_INVALID_PASSWORD matches the documentation. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'libcli/auth')
-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);