Diff for /libraries/liblber/decode.c between versions 1.105.2.3 and 1.114

version 1.105.2.3, 2007/10/18 01:37:30 version 1.114, 2008/08/06 11:36:53
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.2 2007/08/31 23:13:54 quanah Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.113 2008/01/07 23:20:03 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-2007 The OpenLDAP Foundation.   * Copyright 1998-2008 The OpenLDAP Foundation.
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
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.3  
changed lines
  Added in v.1.114


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