From aa8e34546c1e51e69f5a4935d28cb0c543e7401a Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 20 Mar 2000 19:33:20 +0000 Subject: [PATCH] commented nonobvious INSIST() --- lib/dns/name.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/dns/name.c b/lib/dns/name.c index 95f750efcd..d7dd8c6895 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -824,6 +824,13 @@ dns_name_rdatacompare(dns_name_t *name1, dns_name_t *name2) { } } + /* + * If one name had more labels than the other, their common + * prefix must have been different because the shorter name + * ended with the root label and the longer one can't have + * a root label in the middle of it. Therefore, if we get + * to this point, the lengths must be equal. + */ INSIST(l1 == l2); return (0);