summaryrefslogtreecommitdiff
path: root/lib/cf-socket.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-01-31 13:48:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-01-31 14:35:39 +0100
commit1ca483a40cd5b9666a693259003582f13d42b6b0 (patch)
tree99bbd0f110c563f3d3aa4844c505d4a7aedbc0ef /lib/cf-socket.c
parent91eb197a9e9cd8f5aa696773008de2401c1f4f6c (diff)
downloadcurl-1ca483a40cd5b9666a693259003582f13d42b6b0.tar.gz
cf-socket: fix build error wo TCP_FASTOPEN_CONNECT
Follow-up to 5651a36d1a Closes #10378 Reviewed-by: Stefan Eissing
Diffstat (limited to 'lib/cf-socket.c')
-rw-r--r--lib/cf-socket.c6
1 files changed, 3 insertions, 3 deletions
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