geoip: Increment and decrement functions for the geoip client cache
commit4d812e29b9b1ec88fe268c150a826466b23a8762
authorDavid Goulet <dgoulet@torproject.org>
Fri, 2 Feb 2018 18:14:50 +0000 (2 13:14 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 2 Feb 2018 19:48:41 +0000 (2 14:48 -0500)
tree147be39c4fd704dde0832f593170258eb4cd6ba0
parent51839f47650463f59bd2cc84da05d5bc535d699d
geoip: Increment and decrement functions for the geoip client cache

These functions protect againts over and underflow. They BUG() in case we
overflow the counter.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/geoip.c