From e60d22e3c65cd857bcd5415e57c445c64ce0e136 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 3 Jan 2002 23:25:25 +0000 Subject: [PATCH] Quick fix for NULL sos --- libraries/liblber/encode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/liblber/encode.c b/libraries/liblber/encode.c index c889e44ea4..6c8b30aa8d 100644 --- a/libraries/liblber/encode.c +++ b/libraries/liblber/encode.c @@ -504,6 +504,8 @@ ber_put_seqorset( BerElement *ber ) assert( ber != NULL ); assert( LBER_VALID( ber ) ); + if( *sos == NULL ) 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 -- 2.39.5