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

assert that we get a good index to Curl_transfer()

parent 3b048880
No related branches found
No related tags found
No related merge requests found
......@@ -1951,6 +1951,8 @@ Curl_Transfer(struct connectdata *c_conn, /* connection data */
if(!conn)
return CURLE_BAD_FUNCTION_ARGUMENT;
curlassert(sockindex <= 1);
/* now copy all input parameters */
conn->sockfd = sockindex==-1?-1:conn->sock[sockindex];
conn->size = size;
......
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