mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Import minor security fix from -devel to resolve ITS#232.
This commit is contained in:
parent
36d0c37d01
commit
302f940586
2 changed files with 3 additions and 2 deletions
1
CHANGES
1
CHANGES
|
|
@ -4,6 +4,7 @@ Changes included in OpenLDAP 1.2 Release Engineering
|
|||
CVS Tag: OPENLDAP_REL_ENG_1_2
|
||||
Fixed slapd substring_comp_candidates null intersection bug (ITS#228)
|
||||
Fixed slapd modify: delete of last attribute value bug (ITS#229)
|
||||
Import password security fix from -devel (ITS#232)
|
||||
Build environment
|
||||
Updated to latest Autoconf (AnonCVS)
|
||||
Updated to latest aclocal from Automake (AnonCVS)
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ lutil_passwd(
|
|||
lutil_SHA1Final(SHA1digest, &SHA1context);
|
||||
|
||||
/* compare */
|
||||
rc = strncmp((char *)orig_pass, (char *)SHA1digest, sizeof(SHA1digest));
|
||||
rc = memcmp((char *)orig_pass, (char *)SHA1digest, sizeof(SHA1digest));
|
||||
free(orig_pass);
|
||||
return(rc);
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ lutil_passwd(
|
|||
lutil_MD5Final(MD5digest, &MD5context);
|
||||
|
||||
/* compare */
|
||||
rc = strncmp((char *)orig_pass, (char *)MD5digest, sizeof(MD5digest));
|
||||
rc = memcmp((char *)orig_pass, (char *)MD5digest, sizeof(MD5digest));
|
||||
free(orig_pass);
|
||||
return ( rc );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue