Diff for /libraries/liblber/encode.c between versions 1.77 and 1.78

version 1.77, 2009/10/21 10:41:34 version 1.78, 2009/10/23 18:39:54
Line 1 Line 1
 /* encode.c - ber output encoding routines */  /* encode.c - ber output encoding routines */
 /* $OpenLDAP: pkg/ldap/libraries/liblber/encode.c,v 1.76 2009/08/12 20:12:15 hallvard Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/encode.c,v 1.77 2009/10/21 10:41:34 hallvard Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1998-2009 The OpenLDAP Foundation.   * Copyright 1998-2009 The OpenLDAP Foundation.
Line 455  ber_put_seqorset( BerElement *ber ) Line 455  ber_put_seqorset( BerElement *ber )
   
         /* Store length, and close gap of leftover reserved length octets */          /* Store length, and close gap of leftover reserved length octets */
         len = xlen - SOS_LENLEN;          len = xlen - SOS_LENLEN;
         if ( ber->ber_options & LBER_USE_DER ) {          if ( !(ber->ber_options & LBER_USE_DER) ) {
                 int i;                  int i;
                 lenptr[0] = SOS_LENLEN - 1 + 0x80; /* length(length)-1 */                  lenptr[0] = SOS_LENLEN - 1 + 0x80; /* length(length)-1 */
                 for( i = SOS_LENLEN; --i > 0; len >>= 8 ) {                  for( i = SOS_LENLEN; --i > 0; len >>= 8 ) {

Removed from v.1.77  
changed lines
  Added in v.1.78


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org