From 6b3a955cfeb7d6058325ed099a3f516f3d1d407f Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Wed, 13 Dec 2017 11:17:10 +0100 Subject: [PATCH] return in functions --- src/utils/ubus.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/ubus.c b/src/utils/ubus.c index 25df27e..408406f 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -480,8 +480,6 @@ int handle_network_msg(char* msg) return -1; } - return -1; - if (strncmp(method, "probe", 5) == 0) { printf("METHOD PROBE\n"); probe_entry entry; @@ -493,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; @@ -502,7 +500,7 @@ 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);