Check the rdata type for range before uint16_tobuffer, because by the time uint16_tobuffer is called the loss of data from strtol() already occurred and uint16_tobuffer would not be able to detect a range error.
Check the rdata type for range before uint16_tobuffer, because by the time
uint16_tobuffer is called the loss of data from strtol() already occurred
and uint16_tobuffer would not be able to detect a range error.

also, use token.value.as_char when assigning to char c, which is already
checked to be < 256.

pecharmin/bind9,pecharmin/bind9,each/bind9-collab,each/bind9-collab,pecharmin/bind9,each/bind9-collab,each/bind9-collab,pecharmin/bind9,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,each/bind9-collab