Changeset 3272


Ignore:
Timestamp:
Oct 2, 2007, 4:59:56 PM (15 years ago)
Author:
charles
Message:

Fix erratic `(int)EVBUFFER_LENGTH( inbuf ) >= byteCount' error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r3242 r3272  
    798798    uint16_t padc_len = 0;
    799799    uint32_t crypto_provide = 0;
    800     const size_t needlen = SHA_DIGEST_LENGTH + VC_LENGTH + sizeof(crypto_provide) + sizeof(padc_len);
     800    const size_t needlen = SHA_DIGEST_LENGTH /* HASH('req1',s) */
     801                         + SHA_DIGEST_LENGTH /* HASH('req2', SKEY) xor HASH('req3', S) */
     802                         + VC_LENGTH
     803                         + sizeof(crypto_provide)
     804                         + sizeof(padc_len);
    801805    tr_torrent * tor = NULL;
    802806
Note: See TracChangeset for help on using the changeset viewer.