From: Jelte Jansen Date: Thu, 20 Jan 2005 12:48:46 +0000 (+0000) Subject: off by 1 X-Git-Tag: release-0.50~554 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92aa37cfa6e9e438f756801aea7b220a9c45bf70;p=thirdparty%2Fldns.git off by 1 --- diff --git a/host2str.c b/host2str.c index cf9be0b0..48211bbf 100644 --- a/host2str.c +++ b/host2str.c @@ -414,7 +414,7 @@ ldns_rdf2buffer_wks(ldns_buffer *output, ldns_rdf *rdf) } for (current_service = 0; - current_service < ldns_rdf_size(rdf) * (8-1); + current_service < ldns_rdf_size(rdf) * 8; current_service++) { if (get_bit(&(ldns_rdf_data(rdf)[1]), current_service)) { service = getservbyport(ntohs(current_service),