Diff for /libraries/liblber/decode.c between versions 1.4.10.7 and 1.6

version 1.4.10.7, 1998/10/22 19:35:53 version 1.6, 1998/10/26 00:18:42
Line 25 Line 25
 #include <ac/string.h>  #include <ac/string.h>
 #include <ac/socket.h>  #include <ac/socket.h>
   
 #include "lber.h"  #include "lber-int.h"
   
 #ifdef LDAP_DEBUG  #ifdef LDAP_DEBUG
 int     lber_debug;  int     lber_debug;
Line 160  ber_getnint( BerElement *ber, long *num, Line 160  ber_getnint( BerElement *ber, long *num,
         sign = (0x80 & *(p+diff) );          sign = (0x80 & *(p+diff) );
         if ( sign && len < sizeof(long) ) {          if ( sign && len < sizeof(long) ) {
                 for ( i = 0; i < diff; i++ ) {                  for ( i = 0; i < diff; i++ ) {
                         *(p+i) = (char) 0xff;                          *(p+i) = (unsigned char) 0xff;
                 }                  }
         }          }
         *num = AC_NTOHL( netnum );          *num = AC_NTOHL( netnum );

Removed from v.1.4.10.7  
changed lines
  Added in v.1.6


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