Properly report connect error codes

The logic was flawed and would treat all connect errors as
if there were no addresses found.
1 file changed