Diff for /libraries/liblber/decode.c between versions 1.105.2.4 and 1.105.2.5

version 1.105.2.4, 2008/02/11 23:26:41 version 1.105.2.5, 2008/09/02 23:54:37
Line 1 Line 1
 /* decode.c - ber input decoding routines */  /* decode.c - ber input decoding routines */
 /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.105.2.3 2007/10/18 01:37:30 quanah Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.105.2.4 2008/02/11 23:26:41 kurt 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-2008 The OpenLDAP Foundation.   * Copyright 1998-2008 The OpenLDAP Foundation.
Line 69  ber_decode_oid( BerValue *in, BerValue * Line 69  ber_decode_oid( BerValue *in, BerValue *
                 val |= der[i] & 0x7f;                  val |= der[i] & 0x7f;
                 if ( !( der[i] & 0x80 )) {                  if ( !( der[i] & 0x80 )) {
                         if ( ptr == NULL ) {                          if ( ptr == NULL ) {
                                 /* Initial "x.y": val=x*40+y, x<=2, y<40 if x=2 */                                  /* Initial "x.y": val=x*40+y, x<=2, y<40 if x<2 */
                                 ptr = out->bv_val;                                  ptr = out->bv_val;
                                 val1 = (val < 80 ? val/40 : 2);                                  val1 = (val < 80 ? val/40 : 2);
                                 val -= val1*40;                                  val -= val1*40;

Removed from v.1.105.2.4  
changed lines
  Added in v.1.105.2.5


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