1
0
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:
Daniel Stenberg 2003-12-10 15:27:27 +00:00
parent 3b048880ad
commit a13f85fb33

View File

@ -1951,6 +1951,8 @@ Curl_Transfer(struct connectdata *c_conn, /* connection data */
if(!conn) if(!conn)
return CURLE_BAD_FUNCTION_ARGUMENT; return CURLE_BAD_FUNCTION_ARGUMENT;
curlassert(sockindex <= 1);
/* now copy all input parameters */ /* now copy all input parameters */
conn->sockfd = sockindex==-1?-1:conn->sock[sockindex]; conn->sockfd = sockindex==-1?-1:conn->sock[sockindex];
conn->size = size; conn->size = size;