From 960ad0154dbb8811f406479633eaa1d67722b11a Mon Sep 17 00:00:00 2001 From: fumiama Date: Tue, 4 May 2021 15:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E9=92=88=E6=9C=AA=E8=A7=A3=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index f0e0977..d5084bf 100644 --- a/server.c +++ b/server.c @@ -328,7 +328,7 @@ void handle_accept(void *p) { } printf("Break: recv %zd bytes\n", timer_pointer_of(p)->numbytes); } else puts("Error allocating buffer"); - timer_pointer_of(p)->thread = 0; + *(timer_pointer_of(p)->thread) = 0; kill_thread(timer_pointer_of(p)); } else puts("Error accepting client"); }