DragonFlyBSD Kernel Audit
DF-0696 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/netgraph/etf/ng_etf.c b/sys/netgraph/etf/ng_etf.c
--- a/sys/netgraph/etf/ng_etf.c	2026-06-29 12:51:19.000000000 +0000
+++ b/sys/netgraph/etf/ng_etf.c	2026-07-19 07:48:00.419495311 +0000
@@ -380,6 +380,7 @@
 
 	if (NG_HOOK_PRIVATE(hook) == NULL) { /* Shouldn't happen but.. */
 		NG_FREE_DATA(m, meta);
+		return (EINVAL);			/* DF-0696: missing bail-out */
 	}
 
 	/*