From 1ca483a40cd5b9666a693259003582f13d42b6b0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 31 Jan 2023 13:48:30 +0100 Subject: cf-socket: fix build error wo TCP_FASTOPEN_CONNECT Follow-up to 5651a36d1a Closes #10378 Reviewed-by: Stefan Eissing --- lib/cf-socket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/cf-socket.c') diff --git a/lib/cf-socket.c b/lib/cf-socket.c index d8b07d309..04f51dae0 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 -- cgit v1.2.1