From: Mark Andrews Date: Wed, 20 Mar 2002 22:25:58 +0000 (+0000) Subject: missed it part X-Git-Tag: v9.0.1^2~8423 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=18360f880c46c8f0ca01703ae826c41ff8aca785;p=thirdparty%2Fbind9.git missed it part --- diff --git a/lib/dns/rdata.c b/lib/dns/rdata.c index dc7303e160d..0f2f46b316e 100644 --- a/lib/dns/rdata.c +++ b/lib/dns/rdata.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdata.c,v 1.168 2002/03/20 22:06:07 marka Exp $ */ +/* $Id: rdata.c,v 1.169 2002/03/20 22:25:58 marka Exp $ */ #include #include @@ -1049,7 +1049,7 @@ isc_result_t dns_rdataclass_fromtext(dns_rdataclass_t *classp, isc_textregion_t *source) { #define COMPARE(string, rdclass) \ if (((sizeof(string) - 1) == source->length) \ - && (strcasecmp(source->base, string) == 0)) { \ + && (strncasecmp(source->base, string, source->length) == 0)) { \ *classp = rdclass; \ return (ISC_R_SUCCESS); \ }