mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 05:39:24 +01:00
adhoc: fix missing call to va_end
Since only one switch case uses this, va_start/end were just moved into that case specifically.
This commit is contained in:
parent
6ad50ac49b
commit
9885568b47
@ -186,14 +186,15 @@ static void adhoc_handshake_event(struct handshake_state *hs,
|
||||
struct adhoc_state *adhoc = sta->adhoc;
|
||||
va_list args;
|
||||
|
||||
va_start(args, user_data);
|
||||
|
||||
switch (event) {
|
||||
case HANDSHAKE_EVENT_FAILED:
|
||||
va_start(args, user_data);
|
||||
|
||||
l_error("handshake failed with STA "MAC" (%d)",
|
||||
MAC_STR(sta->addr),
|
||||
va_arg(args, int));
|
||||
|
||||
va_end(args);
|
||||
/*
|
||||
* eapol frees the state machines upon handshake failure. Since
|
||||
* this is only a failure on one of the handshakes we need to
|
||||
|
Loading…
Reference in New Issue
Block a user