From: Kurt Zeilenga Date: Thu, 3 Jan 2002 23:25:25 +0000 (+0000) Subject: Quick fix for NULL sos X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~306 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e60d22e3c65cd857bcd5415e57c445c64ce0e136;p=openldap Quick fix for NULL sos --- 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