summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_netlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c
index 9c260d5759..45d9e009a6 100644
--- a/source3/rpc_server/srv_netlog.c
+++ b/source3/rpc_server/srv_netlog.c
@@ -633,8 +633,8 @@ static uint32 net_login_network(NET_ID_INFO_2 *id2,
fstring user;
fstring domain;
- int nt_pw_len = id2->hdr_nt_chal_resp.str_str_len >= 24;
- int lm_pw_len = id2->hdr_lm_chal_resp.str_str_len >= 24;
+ int nt_pw_len = id2->hdr_nt_chal_resp.str_str_len;
+ int lm_pw_len = id2->hdr_lm_chal_resp.str_str_len;
unistr2_to_ascii(user , &id2->uni_user_name, sizeof(user)-1);
unistr2_to_ascii(domain, &id2->uni_domain_name, sizeof(domain)-1);