Fix addrman crashes
authorPieter Wuille <pieter.wuille@gmail.com>
Sat, 5 May 2012 19:22:55 +0000 (21:22 +0200)
committerLuke Dashjr <luke-jr+git@utopios.org>
Sun, 6 May 2012 05:32:44 +0000 (05:32 +0000)
commitadecb2ea00c8e8944a8c9bc5bc10e84ed1a568c0
treedb4d1b002df0bdf529a60f117d946b360c5ed29e
parentb94e6eb5a510315c4713ffc8bcfbfceb674691dc
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