mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +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;
|
const struct wsc_credential *cred;
|
||||||
|
|
||||||
assert(va_arg(args, unsigned int) !=
|
assert(va_arg(args, unsigned int) ==
|
||||||
EAP_WSC_EVENT_CREDENTIAL_OBTAINED);
|
EAP_WSC_EVENT_CREDENTIAL_OBTAINED);
|
||||||
|
|
||||||
cred = va_arg(args, const struct wsc_credential *);
|
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)));
|
sizeof(struct wsc_credential)));
|
||||||
|
|
||||||
data->cur_cred += 1;
|
data->cur_cred += 1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int verify_8021x(uint32_t ifindex,
|
static int verify_8021x(uint32_t ifindex,
|
||||||
|
Loading…
Reference in New Issue
Block a user