DragonFlyBSD Kernel Audit
DF-0361 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/net/netmap/netmap.c b/sys/net/netmap/netmap.c
--- a/sys/net/netmap/netmap.c
+++ b/sys/net/netmap/netmap.c
@@ -1490,6 +1490,7 @@
 		struct socket so;
 
 		bzero(&so, sizeof(so));
+		so.so_options |= SO_USELOOPBACK;
 		NMG_LOCK();
 		error = netmap_get_na(nmr, &na, 0 /* don't create */); /* keep reference */
 		if (error) {