]> git.ipfire.org Git - thirdparty/tor.git/commit
Refactor format_networkstatus_vote to avoid preallocating a buffer.
authorNick Mathewson <nickm@torproject.org>
Wed, 20 Feb 2013 05:36:59 +0000 (00:36 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 20 Feb 2013 05:36:59 +0000 (00:36 -0500)
commit9f044eac77ee2245de71283e71361346ee194f25
tree3cd990ec50c30158ad6a4a7a0bd21ef598b96ab4
parent337e32f5b8f5f3b310da20bf0135f17d06efb3ab
Refactor format_networkstatus_vote to avoid preallocating a buffer.

This saves a lot of "are we about to overrun the buffer?" checking,
and unmoots a bunch of "did we allocate enough" discussion.
src/or/dirvote.c