* length into 'rdata' and 'len_rdata'.
*/
const void *rdata = NULL;
- size_t len_rdata = 0;
+ uint16_t len_rdata = 0;
if (query_source->ss_family == AF_INET && qtype == KNOT_RRTYPE_A) {
const struct sockaddr_in *sai = (struct sockaddr_in *)query_source;
rdata = &sai->sin_addr.s_addr;
return state;
}
- /* Sanity check, since knot_rrset_add_rdata() takes a uint16_t length
- * parameter.
- */
- if (len_rdata > UINT16_MAX) {
- return state;
- }
-
/* Synthesize the response RRset. */
/* TTL is taken from the TTL of the SOA record. */