From: Hallvard Furuseth Date: Fri, 23 Oct 2009 20:39:54 +0000 (+0000) Subject: ITS#6348: Fix inverted LBER_USE_DER test in ber_put_seqorset() since rev 1.73 X-Git-Tag: ACLCHECK_0~171 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a688d8d5902ad2923f7eb84e3952a4812e3fe17;p=openldap ITS#6348: Fix inverted LBER_USE_DER test in ber_put_seqorset() since rev 1.73 --- diff --git a/libraries/liblber/encode.c b/libraries/liblber/encode.c index d2a432fe1e..e0968507dd 100644 --- a/libraries/liblber/encode.c +++ b/libraries/liblber/encode.c @@ -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 ) {