Attention is currently required from: Arne Schwabe, Marco Baffo.

Răzvan Cojocaru has posted comments on this change by Marco Baffo. ( 
https://gerrit.openvpn.net/c/openvpn/+/2360?usp=email )

Change subject: options: preserve --dns-updown across PUSH_UPDATE
......................................................................


Patch Set 1: Code-Review+1

(1 comment)

File src/openvpn/options.c:

https://gerrit.openvpn.net/c/openvpn/+/2360/comment/1bfd847a_26586e02?usp=email 
:
PS1, Line 3629:     dns->servers = NULL;
Looks good, but would it be good to "save and restore" here, so that people who 
add new fields to `struct dns_options` in the future don't forget to clear them 
manually here?

Maybe something like this?


```
struct dns_options *dns = &options->dns_options;
const char *updown = dns->updown;
enum dns_updown_flags updown_flags = dns->updown_flags;

gc_free(&dns->gc);
CLEAR(*dns);
/* --dns-updown is local configuration, not pushed */
dns->updown = updown;
dns->updown_flags = updown_flags;
```



-- 
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2360?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib20f4965f25472f47b98981d54eaf4e2269d7408
Gerrit-Change-Number: 2360
Gerrit-PatchSet: 1
Gerrit-Owner: Marco Baffo <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Răzvan Cojocaru <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Marco Baffo <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Comment-Date: Fri, 27 Nov 2026 12:08:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to