Fix bug # 166189 - Segmentation fault on invalid filter string.

Check that a sequence of set has been created before using
	it inside ber_put_seqorset().
This commit is contained in:
mcs%netscape.com 2002-11-01 15:23:29 +00:00
Родитель f4ddf92b9a
Коммит b037291669
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -420,6 +420,13 @@ ber_put_seqorset( BerElement *ber )
Seqorset *next;
Seqorset **sos = &ber->ber_sos;
if ( *sos == NULL ) {
/*
* No sequence or set to put... fatal error.
*/
return( -1 );
}
/*
* If this is the toplevel sequence or set, we need to actually
* write the stuff out. Otherwise, it's already been put in