diff options
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 74d6b78b9..57afd6636 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -2498,11 +2498,13 @@ Curl_setup_transfer( ) { struct connectdata *conn = (struct connectdata *)c_conn; - struct SessionHandle *data = conn->data; + struct SessionHandle *data; if(!conn) return CURLE_BAD_FUNCTION_ARGUMENT; + data = conn->data; + DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); /* now copy all input parameters */ |