aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 5a376c34a..90283fe85 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -570,11 +570,11 @@ static CURLcode trynextip(struct connectdata *conn,
if(ai) {
rc = singleipconnect(conn, ai, &conn->tempsock[tempindex]);
- conn->tempaddr[tempindex] = ai;
if(rc == CURLE_COULDNT_CONNECT) {
ai = ai->ai_next;
continue;
}
+ conn->tempaddr[tempindex] = ai;
}
break;
}