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

dpp: unref DPP frame if sending fails

This commit is contained in:
James Prestwood 2022-01-07 09:58:48 -08:00 committed by Denis Kenzior
parent 6a421a1254
commit 226fd5c0b8

View File

@ -219,8 +219,10 @@ static void dpp_send_frame(uint64_t wdev_id, struct iovec *iov, size_t iov_len,
l_debug("Sending frame on frequency %u", freq); l_debug("Sending frame on frequency %u", freq);
if (!l_genl_family_send(nl80211, msg, dpp_send_frame_cb, NULL, NULL)) if (!l_genl_family_send(nl80211, msg, dpp_send_frame_cb, NULL, NULL)) {
l_error("Could not send CMD_FRAME"); l_error("Could not send CMD_FRAME");
l_genl_msg_unref(msg);
}
} }
static size_t dpp_build_header(const uint8_t *src, const uint8_t *dest, static size_t dpp_build_header(const uint8_t *src, const uint8_t *dest,