]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix a memory leak when parsing a ns
authorSebastian Hahn <sebastian@torproject.org>
Sun, 13 Sep 2009 19:47:55 +0000 (21:47 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Mon, 14 Sep 2009 20:25:08 +0000 (22:25 +0200)
commitb792afa91901abaa04417051d1369fa8e643d90d
tree0ec5d3f0bab2d8b7074178e9906811fc75399895
parentfcacf224913b3a0a08cef06a7241348f49b26e49
Fix a memory leak when parsing a ns

Adding the same vote to a networkstatus consensus leads to a memory leak
on the client side. Fix that by only using the first vote from any given
voter, and ignoring the others.

Problem found by Rotor, who also helped writing the patch. Thanks!
ChangeLog
src/or/routerparse.c