diff options
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index 460668191..3deb69a9a 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -1105,7 +1105,7 @@ static CURLcode easy_connection(struct Curl_easy *data, curl_socket_t *sfd, struct connectdata **connp) { - if(data == NULL) + if(!data) return CURLE_BAD_FUNCTION_ARGUMENT; /* only allow these to be called on handles with CURLOPT_CONNECT_ONLY */ |