3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

unit: Fixup test-wsc

- Add missing break statement
- Add missing va_end
- Fix logic inversion introduced by 2d995b17c1dff

Fixes: 2d95b17c1d ("unit: Update event handler in WSC, eapol tests")
Reported-By: Will Dietz <w@wdtz.org>
This commit is contained in:
Denis Kenzior 2019-11-05 10:42:04 -06:00
parent b19ee6bdcc
commit 217dc6d4cc

View File

@ -1948,7 +1948,7 @@ static void verify_handshake_event(struct handshake_state *hs,
{
const struct wsc_credential *cred;
assert(va_arg(args, unsigned int) !=
assert(va_arg(args, unsigned int) ==
EAP_WSC_EVENT_CREDENTIAL_OBTAINED);
cred = va_arg(args, const struct wsc_credential *);
@ -1956,10 +1956,13 @@ static void verify_handshake_event(struct handshake_state *hs,
sizeof(struct wsc_credential)));
data->cur_cred += 1;
break;
}
default:
break;
}
va_end(args);
}
static int verify_8021x(uint32_t ifindex,