mirror of
https://github.com/curl/curl.git
synced 2026-05-30 04:57:33 +03:00
cf-socket: fix build regression
Reported-by: Stephan Guilloux Fixes #10190 Closes #10191
This commit is contained in:
parent
b8b483b0c4
commit
36dce55629
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2023, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -942,7 +942,7 @@ static int do_connect(struct Curl_cfilter *cf, struct Curl_easy *data)
|
|||
|
||||
rc = connect(ctx->sock, &ctx->r_addr.sa_addr, ctx->r_addr.addrlen);
|
||||
#elif defined(MSG_FASTOPEN) /* old Linux */
|
||||
if(conn->given->flags & PROTOPT_SSL)
|
||||
if(cf->conn->given->flags & PROTOPT_SSL)
|
||||
rc = connect(ctx->sock, &ctx->r_addr.sa_addr, ctx->r_addr.addrlen);
|
||||
else
|
||||
rc = 0; /* Do nothing */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue