mirror of
https://github.com/curl/curl.git
synced 2026-07-09 22:17:21 +03:00
assert that we get a good index to Curl_transfer()
This commit is contained in:
parent
3b048880ad
commit
a13f85fb33
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue