]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Tue, 11 Sep 2001 01:09:36 +0000 (01:09 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 11 Sep 2001 01:09:36 +0000 (01:09 +0000)
compare: a REQUIRE() was comparing a variable against itself not agaist the
other arguement as it should have been.

lib/dns/rdata/generic/null_10.c
lib/dns/rdata/generic/unspec_103.c

index 8a2842d9be7c1e0159548f6662ade485d86168db..7d2aa8aa916209d4d76aed7a6b0eb1c9a6990e02 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: null_10.c,v 1.30.4.2 2001/06/20 23:16:38 marka Exp $ */
+/* $Id: null_10.c,v 1.30.4.3 2001/09/11 01:09:35 gson Exp $ */
 
 /* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */
 
@@ -78,7 +78,7 @@ compare_null(ARGS_COMPARE) {
        isc_region_t r1;
        isc_region_t r2;
 
-       REQUIRE(rdata1->type == rdata1->type);
+       REQUIRE(rdata1->type == rdata2->type);
        REQUIRE(rdata1->rdclass == rdata2->rdclass);
        REQUIRE(rdata1->type == 10);
 
index 79c33526a0098e44590ac04492ec538d62ecf8cf..51622d6caf71e78f7666d5efaebb4708bfc3b564 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: unspec_103.c,v 1.24.4.1 2001/01/09 22:47:43 bwelling Exp $ */
+/* $Id: unspec_103.c,v 1.24.4.2 2001/09/11 01:09:36 gson Exp $ */
 
 #ifndef RDATA_GENERIC_UNSPEC_103_C
 #define RDATA_GENERIC_UNSPEC_103_C
@@ -74,7 +74,7 @@ compare_unspec(ARGS_COMPARE) {
        isc_region_t r1;
        isc_region_t r2;
 
-       REQUIRE(rdata1->type == rdata1->type);
+       REQUIRE(rdata1->type == rdata2->type);
        REQUIRE(rdata1->rdclass == rdata2->rdclass);
        REQUIRE(rdata1->type == 103);