Fix addrman crashes
authorPieter Wuille <pieter.wuille@gmail.com>
Sat, 5 May 2012 19:22:55 +0000 (21:22 +0200)
committerGavin Andresen <gavinandresen@gmail.com>
Sun, 6 May 2012 23:58:22 +0000 (19:58 -0400)
commit05ff9680baed281e00e2a0cab43d1d9ef17ec891
tree17a1f0e1c7dff72fa4748c1b6fd44067ee69f115
parentdfdaee931021618fa2d280907aad7393640f39f5
Fix addrman crashes

A function returned the element to remove from a bucket, instead of its
position in that bucket. This function was only called when a tried
bucket overflowed, which only happens after many outgoing connections
have been made.

Closes: #1065, #1156
src/addrman.cpp