From 6b784de0df14ce5558742255367da13a1f5a507e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 7 Apr 2005 02:23:17 +0000 Subject: [PATCH] ITS#3635 fix input to lmhash --- contrib/slapd-modules/smbk5pwd/smbk5pwd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c index 4ae7710c88..5bf002abef 100644 --- a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c +++ b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c @@ -440,6 +440,8 @@ static int smbk5pwd_exop_passwd( *c++ = *d++; d++; } + pwd.bv_len /= 2; + pwd.bv_val[pwd.bv_len] = '\0'; ml = ch_malloc(sizeof(Modifications)); ml->sml_next = qpw->rs_mods; -- 2.39.5