shithub: front

Download patch

ref: 3f7a323e31ddc5989de00d86e3dab6cd6929c00c
parent: b4e8108d6c43e95a5f1794ef8fcbed53811e1641
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Nov 13 14:31:12 EST 2024

devip: panic if we exceed the number of media entries (thanks k0ga)

--- a/sys/src/9/ip/ipifc.c
+++ b/sys/src/9/ip/ipifc.c
@@ -105,6 +105,7 @@
 			media[i] = med;
 			break;
 		}
+	panic("addipmedium: too many mediums");
 }
 
 /*
--