mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
tcp: improve error handling of net.inet.tcp.udp_tunneling_port
In case the new port can't be set, set the port to 0. MFC after: 3 days Sponsored by: Netflix, Inc.
This commit is contained in:
parent
d3acb974b4
commit
e2d14a04c5
1 changed files with 3 additions and 0 deletions
|
|
@ -903,6 +903,9 @@ sysctl_net_inet_tcp_udp_tunneling_port_check(SYSCTL_HANDLER_ARGS)
|
|||
}
|
||||
if (new != 0) {
|
||||
error = tcp_over_udp_start();
|
||||
if (error != 0) {
|
||||
V_tcp_udp_tunneling_port = 0;
|
||||
}
|
||||
}
|
||||
sx_xunlock(&tcpoudp_lock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue