DragonFlyBSD Kernel Audit
DF-0571 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/net/ipfw3_nat/ip_fw3_nat.c b/sys/net/ipfw3_nat/ip_fw3_nat.c
--- a/sys/net/ipfw3_nat/ip_fw3_nat.c
+++ b/sys/net/ipfw3_nat/ip_fw3_nat.c
@@ -216,7 +216,7 @@
 			csum = &L3HDR(struct icmp, ip)->icmp_cksum;
 			break;
 		default:
-			panic("ipfw3: unsupported proto %u", ip->ip_p);
+			goto oops;
 		}
 		if (s2 == NULL) {
 			goto oops;
@@ -251,7 +251,7 @@
 			csum = &L3HDR(struct icmp, ip)->icmp_cksum;
 			break;
 		default:
-			panic("ipfw3: unsupported proto %u", ip->ip_p);
+			goto oops;
 		}
 		s = RB_FIND(state_tree, tree_out, k);
 		if (s == NULL) {