p2p: Fix off-by-one error in fetching address loop
Summary:
This is a move-only commit.
This is a backport of core#17428 [5/7]
https://github.com/bitcoin/bitcoin/pull/17428/commits/5543c7ab285e90256cbbf9858249e028c9611cda
Depends on D10510
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, majcosta
Reviewed By: #bitcoin_abc, majcosta
Differential Revision: https://reviews.bitcoinabc.org/D10511