ber_flatten must return -1 on unmatched "{" "}" (ITS#6764)

This commit is contained in:
Pierangelo Masarati 2011-01-01 16:06:45 +00:00
parent bdb078a778
commit 6631d41c16

View file

@ -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;