]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix a null-deref-on-fail in unit tests
authorNick Mathewson <nickm@torproject.org>
Mon, 11 Feb 2013 21:32:13 +0000 (16:32 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 11 Feb 2013 21:32:13 +0000 (16:32 -0500)
commit9b2bb901d7c306fd6ca28de527e86379470db89a
treee7546246802d306bcaf41034617b72415148f109
parentfc35ee4910326dc1ae718482b30e57666a71df85
Fix a null-deref-on-fail in unit tests

If geoip_format_bridge_stats() returned NULL when it should have
returned a string, we would have tried to deref NULL, and died.  Not
a big deal in the unit tests, but still worth fixing.

Found by coverity; This is CID 743384.
src/test/test.c