From d9fc01a252af1a76af873db7be83ec71cc8b2b8e Mon Sep 17 00:00:00 2001 From: Leonardo Araujo Date: Fri, 19 Jul 2024 02:28:15 -0300 Subject: [PATCH] fix: not found error --- src/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 22f2fcc..7d09236 100644 --- a/src/server.c +++ b/src/server.c @@ -195,9 +195,12 @@ void *send_data(void *client_socket) { get_users_view(client_socket); } + else + { + error_not_found(client_socket); + } } } - error_not_found(client_socket); close(*(int *)client_socket); free(client_socket); }