]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Tue, 11 Sep 2001 01:09:07 +0000 (01:09 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 11 Sep 2001 01:09:07 +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 918f31c1bad5a2f1119c4cb9fbd86d6149533d6d..d5dea840a9c2c40f7fc215e73b810fd363d4286d 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: null_10.c,v 1.35 2001/07/16 03:06:22 marka Exp $ */
+/* $Id: null_10.c,v 1.35.2.1 2001/09/11 01:09:06 gson Exp $ */
 
 /* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */
 
@@ -80,7 +80,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 afcb9a7584b4b02d7aed36a4820e877d78b0b004..6bb9aa254744dfccd20d6f81574f33244c89eb9b 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: unspec_103.c,v 1.28 2001/07/16 03:06:35 marka Exp $ */
+/* $Id: unspec_103.c,v 1.28.2.1 2001/09/11 01:09:07 gson Exp $ */
 
 #ifndef RDATA_GENERIC_UNSPEC_103_C
 #define RDATA_GENERIC_UNSPEC_103_C
@@ -77,7 +77,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);