ell.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 01/15] netconfig: Add missing NULL check for routes from RA
@ 2022-05-20 18:19 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-05-20 18:19 UTC (permalink / raw)
  To: ell

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

Hi Andrew,

On 5/20/22 10:43, Andrew Zaborowski wrote:
> Fixes: 7a137bcac31e ("netconfig: Create routes from Router Advertisements")
> ---
>   ell/netconfig.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
> 

Patches 1-3 applied, thanks.

Regards,
-Denis

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

* [PATCH 01/15] netconfig: Add missing NULL check for routes from RA
@ 2022-05-20 15:43 Andrew Zaborowski
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Zaborowski @ 2022-05-20 15:43 UTC (permalink / raw)
  To: ell

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

Fixes: 7a137bcac31e ("netconfig: Create routes from Router Advertisements")
---
 ell/netconfig.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ell/netconfig.c b/ell/netconfig.c
index f39f88f..8026c81 100644
--- a/ell/netconfig.c
+++ b/ell/netconfig.c
@@ -573,8 +573,9 @@ static struct l_rtnl_route *netconfig_add_icmp6_route(struct l_netconfig *nc,
 {
 	struct l_rtnl_route *rt;
 
-	rt = netconfig_route_new(nc, AF_INET6, dst->address, dst->prefix_len,
-					gateway, RTPROT_RA);
+	rt = netconfig_route_new(nc, AF_INET6, dst ? dst->address : NULL,
+					dst ? dst->prefix_len : 0, gateway,
+					RTPROT_RA);
 	if (L_WARN_ON(!rt))
 		return NULL;
 
-- 
2.32.0

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

end of thread, other threads:[~2022-05-20 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 18:19 [PATCH 01/15] netconfig: Add missing NULL check for routes from RA Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2022-05-20 15:43 Andrew Zaborowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).