isc_uint16_t family;
isc_uint8_t addrlen, addrbytes, scopelen;
+ /*
+ * Note: This routine needs to handle malformed ECS options.
+ */
+
if (isc_buffer_remaininglength(optbuf) < 4)
return (DNS_R_OPTERR);
family = isc_buffer_getuint16(optbuf);
if (result != ISC_R_SUCCESS)
return (ISC_R_SUCCESS);
- /* Print EDNS info, if any */
+ /*
+ * Print EDNS info, if any.
+ *
+ * WARNING: The option contents may be malformed as
+ * dig +ednsopt=value:<content> does not validity
+ * checking.
+ */
dns_rdata_init(&rdata);
dns_rdataset_current(ps, &rdata);