]> git.ipfire.org Git - thirdparty/tor.git/commit
Avoid likely memory fragmentation from rep_hist_note_descs_served
authorNick Mathewson <nickm@torproject.org>
Tue, 25 Oct 2011 19:32:26 +0000 (15:32 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 25 Oct 2011 21:53:26 +0000 (17:53 -0400)
commit7ab0b5ff713aa609cbbd3c2152b34a7ef60d3e2a
tree9d77541d4ac81a02c90096fe077d6b65845cda34
parent7fbc0184334da7325d983d187ee14fdc0326123a
Avoid likely memory fragmentation from rep_hist_note_descs_served

When you're doing malloc(sizeof(int)), something may well have gone
wrong.

This technique is a bit abusive, but we're already relying on it
working correctly in geoip.c.
src/or/rephist.c