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

totext_in_wks() consumed two bytes for the one-byte

protocol field, causing the port list to be printed incorrectly
This commit is contained in:
Andreas Gustafsson 2000-03-20 19:29:44 +00:00
parent a3c9e34301
commit b538f54ad3

View File

@ -15,7 +15,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
/* $Id: wks_11.c,v 1.21 2000/03/18 00:19:26 explorer Exp $ */ /* $Id: wks_11.c,v 1.22 2000/03/20 19:29:44 gson Exp $ */
/* Reviewed: Fri Mar 17 15:01:49 PST 2000 by explorer */ /* Reviewed: Fri Mar 17 15:01:49 PST 2000 by explorer */
@ -138,7 +138,7 @@ totext_in_wks(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
sprintf(buf, "%u", proto); sprintf(buf, "%u", proto);
RETERR(str_totext(" ", target)); RETERR(str_totext(" ", target));
RETERR(str_totext(buf, target)); RETERR(str_totext(buf, target));
isc_region_consume(&sr, 2); isc_region_consume(&sr, 1);
RETERR(str_totext(" (", target)); RETERR(str_totext(" (", target));
for (i = 0 ; i < sr.length ; i++) { for (i = 0 ; i < sr.length ; i++) {