ITS#6348: Fix inverted LBER_USE_DER test in ber_put_seqorset() since rev 1.73

This commit is contained in:
Hallvard Furuseth 2009-10-23 20:39:54 +00:00
parent 278880083b
commit 3a688d8d59

View 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 ) {