]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import minor security fix from -devel to resolve ITS#232.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 20 Jul 1999 20:27:42 +0000 (20:27 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 20 Jul 1999 20:27:42 +0000 (20:27 +0000)
CHANGES
libraries/liblutil/passwd.c

diff --git a/CHANGES b/CHANGES
index 1dca61e5a970d6e8d44b81cd5c7b4c6f4af14287..46c9620b62f0d20346392b676e4381e3045840d7 100644 (file)
--- a/CHANGES
+++ b/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)
index a8f69dc5ff3baea01409fbf8db9d1c8aa3fdc06a..0b5605a7b27ecd9aceaf8ed1529ec0e3678cb513 100644 (file)
@@ -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 );