Gert Doering has uploaded a new patch set (#2) to the change originally created 
by Alexandre Laroche. ( https://gerrit.openvpn.net/c/openvpn/+/2156?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by Antonio Quartulli, Code-Review+2 by Arne Schwabe


Change subject: dco_linux: clear the context, not the pointer, in 
ovpn_dco_uninit_netlink()
......................................................................

dco_linux: clear the context, not the pointer, in ovpn_dco_uninit_netlink()

CLEAR(dco) zeroes the local pointer variable instead of the
dco_context_t it points to, so the context keeps the nl_cb and
nl_cb_notify pointers that were just released with nl_cb_put().

No functional change today, since close_tun() frees the tuntap right
after, but use CLEAR(*dco) as intended.

GitHub: closes OpenVPN/openvpn#1143

Assisted-by: Claude Code:claude-opus-5-5
Change-Id: Idb22f731a00158ff020a819081a07e1235d8323d
Signed-off-by: Alexandre Laroche <[email protected]>
Acked-by: Arne Schwabe <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2156
Message-Id: <[email protected]>
URL: 
https://www.mail-archive.com/[email protected]/msg40903.html
Signed-off-by: Gert Doering <[email protected]>
---
M src/openvpn/dco_linux.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/56/2156/2

diff --git a/src/openvpn/dco_linux.c b/src/openvpn/dco_linux.c
index 4412ad0..a84e310 100644
--- a/src/openvpn/dco_linux.c
+++ b/src/openvpn/dco_linux.c
@@ -537,7 +537,7 @@
     nl_cb_put(dco->nl_cb);
     nl_cb_put(dco->nl_cb_notify);

-    CLEAR(dco);
+    CLEAR(*dco);
 }

 int

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2156?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: Idb22f731a00158ff020a819081a07e1235d8323d
Gerrit-Change-Number: 2156
Gerrit-PatchSet: 2
Gerrit-Owner: Alexandre Laroche
Gerrit-Reviewer: Antonio Quartulli <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to