]> granicus.if.org Git - transmission/commit
(trunk libT) possible fix for #2301, which is a valgrind complaint about uninitialize...
authorCharles Kerr <charles@transmissionbt.com>
Fri, 7 Aug 2009 00:58:34 +0000 (00:58 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Fri, 7 Aug 2009 00:58:34 +0000 (00:58 +0000)
commit67c1c6db95b6389006396de3bdaf0b8127b9d4f0
treeb0d0889629901a8ca74086b2068be430b110863c
parent192365d4f904740668137b3f7ba052ed1850e4de
(trunk libT) possible fix for #2301, which is a valgrind complaint about uninitialized memory being written to disk while saving the bencoded .resume file.  this commit theorizes that the warning is caused by not zeroing out the tr_peer array before filling it, so the extra bits in tr_addresses' ipv4/ipv6 union were never initialized.  if this theory is correct, this commit (which zeros the memory first) should fix the bug.
libtransmission/peer-mgr.c