From eabc108a20c4f6bffdca5650f7d49334d986656c Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Sat, 31 Oct 2009 01:01:23 +0000 Subject: [PATCH] ITS#6348 --- CHANGES | 1 + libraries/liblber/encode.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index f07fa8db67..97c950152e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,7 @@ OpenLDAP 2.4 Change Log OpenLDAP 2.4.20 Engineering + Fixed liblber inverted LBER_USE_DER test (ITS#6348) Fixed liblber to return failure on certain failures (ITS#6344) Fixed libldap uninitialized return value (ITS#6355) Fixed liblutil constant (ITS#5909) 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