The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=6bd8a7393f28074dea80d452584b992c6302026a
commit 6bd8a7393f28074dea80d452584b992c6302026a Author: Mark Johnston <ma...@freebsd.org> AuthorDate: 2025-07-25 13:13:52 +0000 Commit: Mark Johnston <ma...@freebsd.org> CommitDate: 2025-08-05 13:59:12 +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 (cherry picked from commit a7dfc570f2747668b2fdd8fde6e1954fcedb2378) --- 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 52a5f08d738a..10b864f62787 100644 --- a/sys/net/if_ovpn.c +++ b/sys/net/if_ovpn.c @@ -639,6 +639,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; }