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

version 1.4.10.6, 1998/10/20 02:41:28 version 1.5, 1998/10/24 23:41:55
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.h"
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.5


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