mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
assert that we get a good index to Curl_transfer()
This commit is contained in:
parent
3b048880ad
commit
a13f85fb33
@ -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…
Reference in New Issue
Block a user