2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00

um, ignore that last change. using token.value.as_char will not be

correct on big-endian systems.  use as_ulong but cast to unsigned char.
This commit is contained in:
David Lawrence
1999-10-08 23:52:39 +00:00
parent cec7a04adc
commit d2d1163f55

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a6_38.c,v 1.16 1999/10/08 22:46:28 tale Exp $ */
/* $Id: a6_38.c,v 1.17 1999/10/08 23:52:39 tale Exp $ */
/* draft-ietf-ipngwg-dns-lookups-03.txt */
@@ -47,7 +47,7 @@ fromtext_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type,
if (token.value.as_ulong > 128)
return (DNS_R_RANGE);
prefixlen = token.value.as_char;
prefixlen = (unsigned char)token.value.as_ulong;
RETERR(mem_tobuffer(target, &prefixlen, 1));
/* suffix */