Wireless Daemon for Linux
 help / color / mirror / Atom feed
* Re: [PATCH 1/2] dpp: unref DPP frame if sending fails
@ 2022-01-07 17:56 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-01-07 17:56 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

Hi James,

On 1/7/22 11:58, James Prestwood wrote:
> ---
>   src/dpp.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 

Both applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/2] dpp: unref DPP frame if sending fails
@ 2022-01-07 17:58 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-01-07 17:58 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

---
 src/dpp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/dpp.c b/src/dpp.c
index 54947193..f62bcebb 100644
--- a/src/dpp.c
+++ b/src/dpp.c
@@ -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,
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-07 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-07 17:58 [PATCH 1/2] dpp: unref DPP frame if sending fails James Prestwood
  -- strict thread matches above, loose matches on Subject: below --
2022-01-07 17:56 Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox