From: Pierangelo Masarati Date: Tue, 13 Jun 2006 20:34:02 +0000 (+0000) Subject: don't search past end of berval X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~125 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b5e33f8de9b493847503126d4a13ae6c3f427cab;p=openldap don't search past end of berval --- diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index 03024cb118..a14071da05 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -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; }