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
1 changed files with 3 additions and 1 deletions

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);
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_genl_msg_unref(msg);
}
}
static size_t dpp_build_header(const uint8_t *src, const uint8_t *dest,