projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b04888
)
assert that we get a good index to Curl_transfer()
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 10 Dec 2003 15:27:27 +0000
(15:27 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 10 Dec 2003 15:27:27 +0000
(15:27 +0000)
lib/transfer.c
patch
|
blob
|
history
diff --git
a/lib/transfer.c
b/lib/transfer.c
index
0301167
..
56cc46c
100644
(file)
--- 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;