[BACK]Return to bufaux.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/bufaux.c between version 1.3 and 1.4

version 1.3, 1999/11/02 19:42:35 version 1.4, 1999/11/12 17:28:35
Line 64 
Line 64 
   bits = GET_16BIT(buf);    bits = GET_16BIT(buf);
   /* Compute the number of binary bytes that follow. */    /* Compute the number of binary bytes that follow. */
   bytes = (bits + 7) / 8;    bytes = (bits + 7) / 8;
   bin = xmalloc(bytes);    if (buffer_len(buffer) < bytes)
   buffer_get(buffer, bin, bytes);      fatal("buffer_get_bignum: input buffer too small");
     bin = buffer_ptr(buffer);
   BN_bin2bn(bin, bytes, value);    BN_bin2bn(bin, bytes, value);
   xfree(bin);    buffer_consume(buffer, bytes);
   
   return 2 + bytes;    return 2 + bytes;
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4