From 5a43a40df8f9b000c0f8e1c1e0b40813047620b3 Mon Sep 17 00:00:00 2001 From: Jonas Kramer Date: Sun, 7 Aug 2011 15:31:46 +0200 Subject: [PATCH] Avoid double free crash. --- source/sckif.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/sckif.c b/source/sckif.c index e4aeb15..6f81d3c 100644 --- a/source/sckif.c +++ b/source/sckif.c @@ -191,10 +191,7 @@ void handle_client(int client_socket) { if(disconnect) { debug("removing client\n"); - shutdown(SHUT_RDWR, client_socket); - close(client_socket); - fclose(fd); - + fshutdown(& fd); remove_handle(client_socket); } } -- 2.11.4.GIT