]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cf-socket: fix build regression
authorDaniel Stenberg <daniel@haxx.se>
Sun, 1 Jan 2023 15:32:13 +0000 (16:32 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 2 Jan 2023 09:34:14 +0000 (10:34 +0100)
Reported-by: Stephan Guilloux
Fixes #10190
Closes #10191

lib/cf-socket.c

index b38fd9a871afbbd769ac43b052e8836c623ce15d..49816dff5526d705c72adf397877e091421fabf5 100644 (file)
@@ -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 */