From 6e7ca76b1ff78f5520430f6795b1c3ae0941b8ed Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Sat, 26 Aug 2017 11:19:53 +0200 Subject: [PATCH] Fix strncmp for auth --- src/utils/ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ubus.c b/src/utils/ubus.c index db3d091..fbc285f 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -279,7 +279,7 @@ static int hostapd_notify(struct ubus_context *ctx, struct ubus_object *obj, if (strncmp(method, "probe", 5) == 0) { return handle_probe_req(msg); } - else if (strncmp(method, "auth", 5) == 0) { + else if (strncmp(method, "auth", 4) == 0) { return handle_auth_req(msg); } else if (strncmp(method, "assoc", 5) == 0) {