mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 22:50:51 -05:00
don't search past end of berval
This commit is contained in:
parent
103392b9a3
commit
b5e33f8de9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue