From 3a688d8d5902ad2923f7eb84e3952a4812e3fe17 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 23 Oct 2009 20:39:54 +0000 Subject: [PATCH] ITS#6348: Fix inverted LBER_USE_DER test in ber_put_seqorset() since rev 1.73 --- libraries/liblber/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.39.5