bitcoin/bitcoin — pull request #1207 by sipa (2012-05-05 19:39:11+00:00)
Title: 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