philipp / rpms / dhcp

Forked from rpms/dhcp 4 years ago
Clone

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

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