mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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 a7dfc570f2)
This commit is contained in:
parent
a6bc9dd13b
commit
07de868fc6
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue