git: a7dfc570f274 - main - if_ovpn: Assert that udp_set_kernel_tunneling() succeeds
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Jul 2025 17:39:18 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=a7dfc570f2747668b2fdd8fde6e1954fcedb2378
commit a7dfc570f2747668b2fdd8fde6e1954fcedb2378
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-07-25 13:13:52 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-07-25 17:39:01 +0000
if_ovpn: Assert that udp_set_kernel_tunneling() succeeds
We do this elsewhere, so copy the pattern here.
Reviewed by: kp
MFC after: 2 weeks
Sponsored by: Stormshield
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D51496
---
sys/net/if_ovpn.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/net/if_ovpn.c b/sys/net/if_ovpn.c
index 3ff55dc3040d..67530281eefa 100644
--- a/sys/net/if_ovpn.c
+++ b/sys/net/if_ovpn.c
@@ -635,6 +635,7 @@ ovpn_new_peer(struct ifnet *ifp, const nvlist_t *nvl)
* a new one.
*/
ret = udp_set_kernel_tunneling(sc->so, NULL, NULL, NULL);
+ MPASS(ret == 0);
sorele(sc->so);
sc->so = NULL;
}