Do not use h_errno after connect(2): the function does not set it