Commit 793213e8 authored by David Lawrence's avatar David Lawrence
Browse files

assign char prefixlen from token.value.as_char, not token.value_.as_ulong.

it has already been checked for range.
parent e8f6c68c
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a6_38.c,v 1.15 1999/09/15 23:03:34 explorer Exp $ */
/* $Id: a6_38.c,v 1.16 1999/10/08 22:46:28 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_ulong;
prefixlen = token.value.as_char;
RETERR(mem_tobuffer(target, &prefixlen, 1));
/* suffix */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment