2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

commented nonobvious INSIST()

This commit is contained in:
Andreas Gustafsson 2000-03-20 19:33:20 +00:00
parent 2d2bd6a7ae
commit aa8e34546c

View File

@ -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);