Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2025 13:59:21 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6bd8a7393f28 - stable/14 - if_ovpn: Assert that udp_set_kernel_tunneling() succeeds
Message-ID:  <202508051359.575DxLaa052965@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=6bd8a7393f28074dea80d452584b992c6302026a

commit 6bd8a7393f28074dea80d452584b992c6302026a
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-07-25 13:13:52 +0000
Commit:     Mark Johnston <markj@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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508051359.575DxLaa052965>