summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/config.mk5
-rw-r--r--libcli/auth/smbencrypt.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libcli/auth/config.mk b/libcli/auth/config.mk
index 0d440c0f66..5428f04433 100644
--- a/libcli/auth/config.mk
+++ b/libcli/auth/config.mk
@@ -1,3 +1,8 @@
+[SUBSYSTEM::ntlm_check]
+PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL
+
+ntlm_check_OBJ_FILES = $(addprefix $(libclicommonsrcdir)/auth/, ntlm_check.o)
+
[SUBSYSTEM::MSRPC_PARSE]
MSRPC_PARSE_OBJ_FILES = $(addprefix $(libclicommonsrcdir)/auth/, msrpc_parse.o)
diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c
index bcb40acda1..f5a73feadc 100644
--- a/libcli/auth/smbencrypt.c
+++ b/libcli/auth/smbencrypt.c
@@ -538,7 +538,7 @@ bool encode_pw_buffer(uint8_t buffer[516], const char *password, int string_flag
/* the incoming buffer can be any alignment. */
string_flags |= STR_NOALIGN;
- new_pw_len = push_string(new_pw, new_pw,
+ new_pw_len = push_string(new_pw,
password,
sizeof(new_pw), string_flags);