mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
fix assertion
This commit is contained in:
parent
457b00bf0f
commit
5c1d9b4fce
1 changed files with 3 additions and 2 deletions
|
|
@ -1988,9 +1988,10 @@ strval2str( struct berval *val, char *str, unsigned flags, ber_len_t *len )
|
|||
|
||||
/*
|
||||
* The length was checked in strval2strlen();
|
||||
* LDAP_UTF8_CHARLEN() should suffice
|
||||
*/
|
||||
assert( LDAP_UTF8_CHARLEN2( &val->bv_val[ s ], cl ) > 0 );
|
||||
cl = LDAP_UTF8_CHARLEN( &val->bv_val[ s ] );
|
||||
cl = LDAP_UTF8_CHARLEN2( &val->bv_val[ s ], cl );
|
||||
assert( cl > 0 );
|
||||
|
||||
/*
|
||||
* there might be some chars we want to escape in form
|
||||
|
|
|
|||
Loading…
Reference in a new issue