Fix a memory corruption bug while collecting bridge stats
commit7e65871ccc49f6f25f8782789283cf2afef6e86b
authorKarsten Loesing <karsten.loesing@gmx.net>
Mon, 25 Jan 2010 18:44:17 +0000 (25 18:44 +0000)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 26 Jan 2010 10:55:43 +0000 (26 11:55 +0100)
treec306dda2137e8799a29fb6f2ddd018c30e4f3157
parent2d3f21e9ee5d173640b83b21913da692e74ede10
Fix a memory corruption bug while collecting bridge stats

We accidentally freed the internal buffer for bridge stats when we
were writing the bridge stats file or honoring a control port
request for said data. Change the interfaces for
geoip_get_bridge_stats* to prevent these problems, and remove the
offending free/add a tor_strdup.

Fixes bug 1208.
ChangeLog
src/or/control.c
src/or/geoip.c
src/or/microdesc.c
src/or/or.h
src/or/router.c