All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 1/2] netconfig: Actually use the DNS override values
  2021-09-03 20:06 [PATCH 1/2] netconfig: Actually use the DNS override values Andrew Zaborowski
@ 2021-09-03 19:50 ` Denis Kenzior
  2021-09-03 20:06 ` [PATCH 2/2] station: Check ie_tlv_iter_next return value Andrew Zaborowski
  1 sibling, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2021-09-03 19:50 UTC (permalink / raw)
  To: iwd

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

Hi Andrew,

On 9/3/21 3:06 PM, Andrew Zaborowski wrote:
> In netconfig_load_settings apply the DNS overrides strings we've loaded
> instead of leaking them.
> 
> Fixes: ad228461abbf ("netconfig: Move loading settings to new method, refactor")
> ---
>   src/netconfig.c | 2 ++
>   1 file changed, 2 insertions(+)
> 

Both applied, thanks.

Regards,
-Denis

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

* [PATCH 1/2] netconfig: Actually use the DNS override values
@ 2021-09-03 20:06 Andrew Zaborowski
  2021-09-03 19:50 ` Denis Kenzior
  2021-09-03 20:06 ` [PATCH 2/2] station: Check ie_tlv_iter_next return value Andrew Zaborowski
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Zaborowski @ 2021-09-03 20:06 UTC (permalink / raw)
  To: iwd

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

In netconfig_load_settings apply the DNS overrides strings we've loaded
instead of leaking them.

Fixes: ad228461abbf ("netconfig: Move loading settings to new method, refactor")
---
 src/netconfig.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/netconfig.c b/src/netconfig.c
index 9bbaece5..c748630b 100644
--- a/src/netconfig.c
+++ b/src/netconfig.c
@@ -1293,6 +1293,8 @@ bool netconfig_load_settings(struct netconfig *netconfig,
 							mac_address, ETH_ALEN);
 
 	netconfig->active_settings = active_settings;
+	netconfig->dns4_overrides = dns4_overrides;
+	netconfig->dns6_overrides = dns6_overrides;
 	return true;
 
 err_v6_addr:
-- 
2.30.2

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

* [PATCH 2/2] station: Check ie_tlv_iter_next return value
  2021-09-03 20:06 [PATCH 1/2] netconfig: Actually use the DNS override values Andrew Zaborowski
  2021-09-03 19:50 ` Denis Kenzior
@ 2021-09-03 20:06 ` Andrew Zaborowski
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Zaborowski @ 2021-09-03 20:06 UTC (permalink / raw)
  To: iwd

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

This can't be false but check it to calm static analysis.
---
 src/station.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/station.c b/src/station.c
index 9f00bfb3..afece9eb 100644
--- a/src/station.c
+++ b/src/station.c
@@ -2462,8 +2462,11 @@ static void station_connect_ok(struct station *station)
 
 			ie_tlv_iter_init(&iter, hs->fils_ip_resp_ie,
 						hs->fils_ip_resp_ie[1] + 2);
-			ie_tlv_iter_next(&iter);
-			r = ie_parse_fils_ip_addr_response(&iter, &info);
+			if (!L_WARN_ON(unlikely(!ie_tlv_iter_next(&iter))))
+				r = ie_parse_fils_ip_addr_response(&iter,
+									&info);
+			else
+				r = -ENOMSG;
 
 			if (r != 0)
 				l_debug("Error parsing the FILS IP Address "
-- 
2.30.2

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

end of thread, other threads:[~2021-09-03 20:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 20:06 [PATCH 1/2] netconfig: Actually use the DNS override values Andrew Zaborowski
2021-09-03 19:50 ` Denis Kenzior
2021-09-03 20:06 ` [PATCH 2/2] station: Check ie_tlv_iter_next return value Andrew Zaborowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.