Skip to content
Snippets Groups Projects
Commit 8eb8a0a8 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

bugfix: don't use the connectindex if it is -1

parent a4af6388
No related branches found
No related tags found
No related merge requests found
......@@ -1814,7 +1814,8 @@ CURLcode Curl_connect(struct UrlData *data,
int index;
index = conn->connectindex; /* get the index */
Curl_disconnect(conn); /* close the connection */
data->connects[index]=NULL; /* clear the pointer */
if(-1 != index)
data->connects[index]=NULL; /* clear the pointer */
}
}
return code;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment