diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c index 1ba87099f..0b404aed7 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -509,6 +509,7 @@ static bool trynextip(struct connectdata *conn, /* first close the failed socket */ sclose(conn->sock[sockindex]); + conn->sock[sockindex] = CURL_SOCKET_BAD; /* try the next address */ ai = conn->ip_addr->ai_next; |