Page MenuHomeFreeBSD

D34288.diff
No OneTemporary

D34288.diff

diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1555,8 +1555,8 @@
KASSERT(inp != NULL, ("udp_set_kernel_tunneling: inp == NULL"));
INP_WLOCK(inp);
up = intoudpcb(inp);
- if ((up->u_tun_func != NULL) ||
- (up->u_icmp_func != NULL)) {
+ if ((f != NULL || i != NULL) && ((up->u_tun_func != NULL) ||
+ (up->u_icmp_func != NULL))) {
INP_WUNLOCK(inp);
return (EBUSY);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 4:57 AM (11 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15611332
Default Alt Text
D34288.diff (470 B)

Event Timeline