Attention is currently required from: Arne Schwabe, Marco Baffo, Răzvan 
Cojocaru.

Hello Arne Schwabe, Răzvan Cojocaru,

I'd like you to reexamine a change. Please visit

    https://gerrit.openvpn.net/c/openvpn/+/2360?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review+1 by Răzvan Cojocaru


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

options: preserve --dns-updown across PUSH_UPDATE

Reset DNS records without clearing the local DNS up/down command
and flags when PUSH_UPDATE replaces or removes DNS options.

Change-Id: Ib20f4965f25472f47b98981d54eaf4e2269d7408
Signed-off-by: Marco Baffo <[email protected]>
---
M src/openvpn/options.c
1 file changed, 10 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/60/2360/2

diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 1e0b4d8..c35740d 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -3619,8 +3619,16 @@
 static void
 reset_dns_options(struct options *options)
 {
-    gc_free(&options->dns_options.gc);
-    CLEAR(options->dns_options);
+    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;
 }

 static void

--
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: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib20f4965f25472f47b98981d54eaf4e2269d7408
Gerrit-Change-Number: 2360
Gerrit-PatchSet: 2
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: Răzvan Cojocaru <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to