DragonFlyBSD Kernel Audit
DF-0588 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/net/tun/if_tun.c b/sys/net/tun/if_tun.c
--- a/sys/net/tun/if_tun.c
+++ b/sys/net/tun/if_tun.c
@@ -950,7 +950,7 @@
 		break;
 #endif
 	default:
-		m_freem(m);
+		m_freem(top);
 		return (EAFNOSUPPORT);
 	}