Diff for /libraries/liblber/decode.c between versions 1.21 and 1.22

version 1.21, 1999/05/19 04:13:44 version 1.22, 1999/05/19 04:27:35
Line 71  ber_skip_tag( BerElement *ber, unsigned Line 71  ber_skip_tag( BerElement *ber, unsigned
 {  {
         unsigned long   tag;          unsigned long   tag;
         unsigned char   lc;          unsigned char   lc;
         int             noctets, diff;          unsigned int    noctets;
           int             diff;
         unsigned long   netlen;          unsigned long   netlen;
   
         assert( ber != NULL );          assert( ber != NULL );
Line 109  ber_skip_tag( BerElement *ber, unsigned Line 110  ber_skip_tag( BerElement *ber, unsigned
                 if ( (unsigned) noctets > sizeof(unsigned long) )                  if ( (unsigned) noctets > sizeof(unsigned long) )
                         return( LBER_DEFAULT );                          return( LBER_DEFAULT );
                 diff = sizeof(unsigned long) - noctets;                  diff = sizeof(unsigned long) - noctets;
                 if ( ber_read( ber, (char *) &netlen + diff, noctets )                  if ( (unsigned) ber_read( ber, (char *) &netlen + diff, noctets )
                     != noctets )                      != noctets )
                         return( LBER_DEFAULT );                          return( LBER_DEFAULT );
                 *len = AC_NTOHL( netlen );                  *len = AC_NTOHL( netlen );

Removed from v.1.21  
changed lines
  Added in v.1.22


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