From: Daniel Stenberg Date: Tue, 31 Jan 2023 12:48:30 +0000 (+0100) Subject: cf-socket: fix build error wo TCP_FASTOPEN_CONNECT X-Git-Tag: curl-7_88_0~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ca483a40cd5b9666a693259003582f13d42b6b0;p=thirdparty%2Fcurl.git cf-socket: fix build error wo TCP_FASTOPEN_CONNECT Follow-up to 5651a36d1a Closes #10378 Reviewed-by: Stefan Eissing --- diff --git a/lib/cf-socket.c b/lib/cf-socket.c index d8b07d309f..04f51dae05 100644 --- a/lib/cf-socket.c +++ b/lib/cf-socket.c @@ -1241,9 +1241,9 @@ static ssize_t cf_socket_send(struct Curl_cfilter *cf, struct Curl_easy *data, #if defined(MSG_FASTOPEN) && !defined(TCP_FASTOPEN_CONNECT) /* Linux */ if(cf->conn->bits.tcp_fastopen) { - bytes_written = sendto(ctx->sock, buf, len, MSG_FASTOPEN, - &cf->conn->remote_addr->sa_addr, - cf->conn->remote_addr->addrlen); + nwritten = sendto(ctx->sock, buf, len, MSG_FASTOPEN, + &cf->conn->remote_addr->sa_addr, + cf->conn->remote_addr->addrlen); cf->conn->bits.tcp_fastopen = FALSE; } else