diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-10 15:27:27 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-10 15:27:27 +0000 |
commit | a13f85fb337b0791345079cbcad55fdc7b6b10b0 (patch) | |
tree | ffc2e8406c2a92be7e8630a9913c101df03dfb93 | |
parent | 3b048880ad8db8fe7da65b4168e92f9da7212949 (diff) |
assert that we get a good index to Curl_transfer()
-rw-r--r-- | lib/transfer.c | 2 |
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; |