aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-03-30 20:54:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-03-30 20:54:32 +0000
commit75db459f0a2f32987c75d6314012be65795ba8e2 (patch)
tree36f5772d357254a6a40907b224ea79a9f91f9b42 /lib
parent74e54c5a49aab4e71439b905f40c7b35d13258a2 (diff)
Pointer "conn" dereferenced before NULL check. found by coverity.com scan
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c4
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 */