From 1c9e82001bdbca435fb6e01ad4dcb2723ad9c268 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 16 Aug 2016 16:12:19 -0500 Subject: [PATCH] wscutil: Fix incorrect return value --- src/wscutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wscutil.c b/src/wscutil.c index 78e6a755..ecd67bbf 100644 --- a/src/wscutil.c +++ b/src/wscutil.c @@ -959,7 +959,7 @@ int wsc_parse_m1(const uint8_t *pdu, uint32_t len, struct wsc_m1 *out) /* WSC 2.0.5, Section 8.3.1: "Specific RF band used for this message" */ if (__builtin_popcount(out->rf_bands) != 1) - return false; + return -EBADMSG; if (!wsc_wfa_ext_iter_next(&iter)) goto done;