mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Fix void* pointer arithmetic from ber_bvchr()
This commit is contained in:
parent
82c73ef51a
commit
bfd221ae46
@ -339,7 +339,7 @@ valsort_response( Operation *op, SlapReply *rs )
|
||||
|
||||
if ( a->a_vals != a->a_nvals ) {
|
||||
ptr = a->a_vals[i].bv_val;
|
||||
end = ber_bvchr( &a->a_vals[i], '}' ) + 1;
|
||||
end = (char *) ber_bvchr( &a->a_vals[i], '}' ) + 1;
|
||||
assert( end != NULL );
|
||||
for (;*end;)
|
||||
*ptr++ = *end++;
|
||||
|
Loading…
Reference in New Issue
Block a user