Subject: [PATCH] dhcpv6: Check DUID and IAID for duplicate hosts.
diff --git a/src/server6_parse.y b/src/server6_parse.y
index a28b902..e1ba083 100644
--- a/src/server6_parse.y
+++ b/src/server6_parse.y
@@ -551,9 +551,12 @@ hostdef
 		while (temp_host)
 		{
 			if (temp_host->iaidinfo.iaid == host->iaidinfo.iaid) {
-				dprintf(LOG_ERR, "duplicated host %d redefined", 
-					host->iaidinfo.iaid);
-				ABORT;
+				if (0 == duidcmp(&temp_host->cid, &host->cid)) {
+					dprintf(LOG_ERR,
+					              "duplicated host DUID=%s IAID=%u redefined",
+					              duidstr(&host->cid), host->iaidinfo.iaid);
+					ABORT;
+				}
 			}
 			temp_host = temp_host->next;
 		}
