Changeset 8553


Ignore:
Timestamp:
May 28, 2009, 1:02:03 PM (12 years ago)
Author:
charles
Message:

(trunk libT) fix off-by-one in tr_ssha1() reported by lightix @ http://forum.transmissionbt.com/viewtopic.php?f=2&t=7684#p37556

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/crypto.c

    r8438 r8553  
    376376    char buf[2*SHA_DIGEST_LENGTH + saltval_len + 2];
    377377
    378     for( i=0; i<=saltval_len; ++i )
     378    for( i=0; i<saltval_len; ++i )
    379379        salt[i] = salter[ tr_cryptoRandInt( salter_len ) ];
    380380
Note: See TracChangeset for help on using the changeset viewer.