mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
ber_flatten must return -1 on unmatched "{" "}" (ITS#6764)
This commit is contained in:
parent
bdb078a778
commit
6631d41c16
1 changed files with 5 additions and 0 deletions
|
|
@ -390,6 +390,11 @@ int ber_flatten2(
|
|||
return -1;
|
||||
}
|
||||
|
||||
/* unmatched "{" and "}" */
|
||||
if ( ber->ber_sos_ptr != NULL ) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ( ber == NULL ) {
|
||||
/* ber is null, create an empty berval */
|
||||
bv->bv_val = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue