diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-01-01 16:32:13 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-01-02 10:34:14 +0100 |
commit | 36dce5562935f61d415901fa0e95e0594404cff6 (patch) | |
tree | e90d40baa6cebae644dd7a7010fca52423663368 | |
parent | b8b483b0c44f711ca69100b63b06a0976714b0e5 (diff) | |
download | curl-36dce5562935f61d415901fa0e95e0594404cff6.tar.gz |
cf-socket: fix build regression
Reported-by: Stephan Guilloux
Fixes #10190
Closes #10191
-rw-r--r-- | lib/cf-socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cf-socket.c b/lib/cf-socket.c index b38fd9a87..49816dff5 100644 --- a/lib/cf-socket.c +++ b/lib/cf-socket.c @@ -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 */ |