Changeset 8552


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

(1.6x 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
  • branches/1.6x/libtransmission/crypto.c

    r8085 r8552  
    369369    char buf[2*SHA_DIGEST_LENGTH + saltval_len + 2];
    370370
    371     for( i=0; i<=saltval_len; ++i )
     371    for( i=0; i<saltval_len; ++i )
    372372        salt[i] = salter[ tr_cryptoRandInt( salter_len ) ];
    373373
Note: See TracChangeset for help on using the changeset viewer.