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

version 1.4.10.6, 1998/10/20 02:41:28 version 1.6, 1998/10/26 00:18:42
Line 23 Line 23
 #endif  #endif
   
 #include <ac/string.h>  #include <ac/string.h>
 #include <sys/types.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 161  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.6  
changed lines
  Added in v.1.6


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