]> git.sur5r.net Git - openldap/commitdiff
don't search past end of berval
authorPierangelo Masarati <ando@openldap.org>
Tue, 13 Jun 2006 20:34:02 +0000 (20:34 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 13 Jun 2006 20:34:02 +0000 (20:34 +0000)
libraries/liblutil/passwd.c

index 03024cb1181ed7fee27969db2e7d595d04c05a57..a14071da05cf689d6a305e3415181f800b5e51c5 100644 (file)
@@ -309,7 +309,7 @@ lutil_passwd(
         * didn't recognize? Assume a scheme name is at least 1 character.
         */
        if (( passwd->bv_val[0] == '{' ) &&
-               ( strchr( passwd->bv_val, '}' ) > passwd->bv_val+1 ))
+               ( ber_bvchr( passwd, '}' ) > passwd->bv_val+1 ))
        {
                return 1;
        }