mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
nl80211: Fix tx_control_port error print
send_and_recv_msgs() returns a negative number as the error code and that needs to be negated for strerror(). Fixes: 8759e9116aa6 ("nl80211: Control port over nl80211 helpers") Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
bb2ea8e5e3
commit
17ba51b14d
@ -5219,7 +5219,7 @@ static int nl80211_tx_control_port(void *priv, const u8 *dest,
|
|||||||
if (ret)
|
if (ret)
|
||||||
wpa_printf(MSG_DEBUG,
|
wpa_printf(MSG_DEBUG,
|
||||||
"nl80211: tx_control_port failed: ret=%d (%s)",
|
"nl80211: tx_control_port failed: ret=%d (%s)",
|
||||||
ret, strerror(ret));
|
ret, strerror(-ret));
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user