]> git.sur5r.net Git - openldap/commitdiff
ITS#6348: Fix inverted LBER_USE_DER test in ber_put_seqorset() since rev 1.73
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 23 Oct 2009 20:39:54 +0000 (20:39 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 23 Oct 2009 20:39:54 +0000 (20:39 +0000)
libraries/liblber/encode.c

index d2a432fe1e1697de7399130449525b66fd637236..e0968507dd485269bfd6624e3afd13421f5a993b 100644 (file)
@@ -455,7 +455,7 @@ ber_put_seqorset( BerElement *ber )
 
        /* Store length, and close gap of leftover reserved length octets */
        len = xlen - SOS_LENLEN;
-       if ( ber->ber_options & LBER_USE_DER ) {
+       if ( !(ber->ber_options & LBER_USE_DER) ) {
                int i;
                lenptr[0] = SOS_LENLEN - 1 + 0x80; /* length(length)-1 */
                for( i = SOS_LENLEN; --i > 0; len >>= 8 ) {