diff --git a/lib/dns/name.c b/lib/dns/name.c index 0c61029393..9713cf5f4e 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -1280,6 +1280,7 @@ dns_name_fromtext(dns_name_t *name, isc_buffer_t *source, return (ISC_R_UNEXPECTEDEND); if (state == ft_ordinary) { INSIST(count != 0); + INSIST(label != NULL); *label = count; labels++; INSIST(labels <= 127);