Blame SOURCES/dhcp-4.2.4-P2-dupl-key.patch

fad460
diff -up dhcp-4.2.4-P2/common/parse.c.dupl-key dhcp-4.2.4-P2/common/parse.c
fad460
--- dhcp-4.2.4-P2/common/parse.c.dupl-key	2012-11-16 15:31:30.568561745 +0100
fad460
+++ dhcp-4.2.4-P2/common/parse.c	2012-11-16 15:31:30.577561619 +0100
fad460
@@ -2893,6 +2893,9 @@ int parse_zone (struct dns_zone *zone, s
fad460
 			    }
fad460
 			    val = key_name;
fad460
 		    }
fad460
+		    if (zone->key)
fad460
+			log_fatal("Multiple key definition for zone %s.",
fad460
+				  zone->name);
fad460
 		    if (omapi_auth_key_lookup_name (&zone -> key, val) !=
fad460
 			ISC_R_SUCCESS)
fad460
 			    parse_warn (cfile, "unknown key %s", val);