Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133594353
D46651.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
669 B
Referenced Files
None
Subscribers
None
D46651.diff
View Options
diff --git a/sys/net/if_ovpn.c b/sys/net/if_ovpn.c
--- a/sys/net/if_ovpn.c
+++ b/sys/net/if_ovpn.c
@@ -511,6 +511,7 @@
int fd;
uint32_t peerid;
int ret = 0;
+ bool setcb = false;
if (nvl == NULL)
return (EINVAL);
@@ -631,6 +632,7 @@
* we're destroying the ifp.
*/
soref(sc->so);
+ setcb = true;
}
/* Insert the peer into the list. */
@@ -638,9 +640,11 @@
sc->peercount++;
OVPN_WUNLOCK(sc);
- ret = udp_set_kernel_tunneling(sc->so, ovpn_udp_input, NULL, sc);
- MPASS(ret == 0 || ret == EBUSY);
- ret = 0;
+
+ if (setcb) {
+ ret = udp_set_kernel_tunneling(sc->so, ovpn_udp_input, NULL, sc);
+ MPASS(ret == 0);
+ }
goto done;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 27, 9:50 PM (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24317967
Default Alt Text
D46651.diff (669 B)
Attached To
Mode
D46651: if_ovpn: only install tunnel callback once
Attached
Detach File
Event Timeline
Log In to Comment