aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/transfer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 0301167dc..56cc46cfa 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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;