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

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