From f93b7d697453f386ba13a8688cff64ce97279454 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 7 Apr 2004 14:25:48 +0000 Subject: [PATCH] Import ITS#2899 NS-MTA-MD5 fix from HEAD --- libraries/liblutil/passwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index 6b50bea8e2..e5168fbb9b 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -775,6 +775,7 @@ static int chk_lanman( #endif /* SLAPD_LMHASH */ #ifdef SLAPD_NS_MTA_MD5 +#define NS_MTA_MD5_PASSLEN 64 static int chk_ns_mta_md5( const struct berval *scheme, const struct berval *passwd, @@ -786,7 +787,7 @@ static int chk_ns_mta_md5( char buffer[LUTIL_MD5_BYTES*2]; int i; - if( passwd->bv_len != LUTIL_MD5_BYTES*2 ) { + if( passwd->bv_len != NS_MTA_MD5_PASSLEN ) { return 1; } -- 2.47.2