From 589db63b965f3cd2e277703ec2afb12256033c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=81=E4=B8=80?= Date: Thu, 21 Nov 2024 21:15:08 +0800 Subject: [PATCH] [=] fix global param err --- mini/mini_server_cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini/mini_server_cb.c b/mini/mini_server_cb.c index dfff9b23..178fa4de 100644 --- a/mini/mini_server_cb.c +++ b/mini/mini_server_cb.c @@ -141,9 +141,9 @@ ssize_t xqc_mini_svr_write_socket(const unsigned char *buf, size_t size, const struct sockaddr *peer_addr, socklen_t peer_addrlen, void *arg) { - int fd = svr_ctx.current_fd; ssize_t res = XQC_OK; xqc_mini_svr_user_conn_t *user_conn = (xqc_mini_svr_user_conn_t *)arg; + int fd = user_conn->ctx->current_fd; do { set_sys_errno(0);