DragonFlyBSD Kernel Audit
DF-0486 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -356,7 +356,7 @@
 syncache_insert(struct syncache *sc, struct syncache_head *sch)
 {
 	struct tcp_syncache_percpu *syncache_percpu;
-	struct syncache *sc2;
+	struct syncache *sc2 = NULL;
 	int i;
 
 	syncache_percpu = tcp_syncache_percpu[mycpu->gd_cpuid];