]> git.sur5r.net Git - openldap/commitdiff
Quick fix for NULL sos
authorKurt Zeilenga <kurt@openldap.org>
Thu, 3 Jan 2002 23:25:25 +0000 (23:25 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 3 Jan 2002 23:25:25 +0000 (23:25 +0000)
libraries/liblber/encode.c

index c889e44ea46b03c9af0ca9174bef46fbf7c6ad68..6c8b30aa8debcb394ba9834437d600d06c4cb830 100644 (file)
@@ -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