From: Andreas Gustafsson Date: Tue, 11 Sep 2001 01:09:36 +0000 (+0000) Subject: pullup: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baf0357369b1af3d1de010462a6385fea33ae93d;p=thirdparty%2Fbind9.git pullup: compare: a REQUIRE() was comparing a variable against itself not agaist the other arguement as it should have been. --- diff --git a/lib/dns/rdata/generic/null_10.c b/lib/dns/rdata/generic/null_10.c index 8a2842d9be7..7d2aa8aa916 100644 --- a/lib/dns/rdata/generic/null_10.c +++ b/lib/dns/rdata/generic/null_10.c @@ -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); diff --git a/lib/dns/rdata/generic/unspec_103.c b/lib/dns/rdata/generic/unspec_103.c index 79c33526a00..51622d6caf7 100644 --- a/lib/dns/rdata/generic/unspec_103.c +++ b/lib/dns/rdata/generic/unspec_103.c @@ -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);