mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +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:
parent
b19ee6bdcc
commit
217dc6d4cc
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user