From 30a54086f6d9c9dd9e2b1435605a2f370981eca9 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Wed, 13 Dec 2017 11:21:31 +0100 Subject: [PATCH] return in functions --- src/utils/ubus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/ubus.c b/src/utils/ubus.c index be40997..f89b925 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -491,7 +491,7 @@ int handle_network_msg(char* msg) //parse_to_clients(data_buf.head, 0, 0); } else if (strncmp(method, "deauth", 5) == 0) { printf("METHOD DEAUTH\n"); - hostapd_notify_entry entry; + /*hostapd_notify_entry entry; parse_to_hostapd_notify(data_buf.head, &entry); client client_entry; @@ -500,10 +500,10 @@ int handle_network_msg(char* msg) pthread_mutex_lock(&client_array_mutex); client_array_delete(client_entry); - pthread_mutex_unlock(&client_array_mutex); + pthread_mutex_unlock(&client_array_mutex);*/ } - free(method); - free(data); + //free(method); + //free(data); printf("HANDLING FINISHED NETWORK MSG!\n"); return 0; }