mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
bugfix: don't use the connectindex if it is -1
This commit is contained in:
parent
a4af638867
commit
8eb8a0a8e4
@ -1814,6 +1814,7 @@ CURLcode Curl_connect(struct UrlData *data,
|
|||||||
int index;
|
int index;
|
||||||
index = conn->connectindex; /* get the index */
|
index = conn->connectindex; /* get the index */
|
||||||
Curl_disconnect(conn); /* close the connection */
|
Curl_disconnect(conn); /* close the connection */
|
||||||
|
if(-1 != index)
|
||||||
data->connects[index]=NULL; /* clear the pointer */
|
data->connects[index]=NULL; /* clear the pointer */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user