Fix a double-counting bug in addrmap_get_virtual_address
commit31d6659d974800e972af43856405e8a7abe08f72
authorNick Mathewson <nickm@torproject.org>
Wed, 5 Jan 2011 21:02:43 +0000 (5 16:02 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 5 Jan 2011 21:02:43 +0000 (5 16:02 -0500)
treed971ce07d4ebd1f0da6bdf5e13cc536135b8b38a
parent69771bb5fc0fc472436c5f3fe6dfd3bd0f4929da
Fix a double-counting bug in addrmap_get_virtual_address

We were decrementing "available" twice for each in-use address we ran
across.  This would make us declare that we ran out of virtual
addresses when the address space was only half full.
changes/bug2328 [new file with mode: 0644]
src/or/connection_edge.c