]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Silence gcc-10-fanalyzer false positive
authorMark Andrews <marka@isc.org>
Tue, 18 May 2021 05:51:51 +0000 (15:51 +1000)
committerMark Andrews <marka@isc.org>
Tue, 18 May 2021 05:51:51 +0000 (15:51 +1000)
If 'state == ft_ordinary' then 'label' can't be NULL. Add
INSIST to reflect this.

lib/dns/name.c

index b6657f620af5bf3cf6e9653b9e7fc699fe65a844..f751b9a0676d38472538ab51124197b17f484015 100644 (file)
@@ -1264,6 +1264,7 @@ dns_name_fromtext(dns_name_t *name, isc_buffer_t *source,
                }
                if (state == ft_ordinary) {
                        INSIST(count != 0);
+                       INSIST(label != NULL);
                        *label = count;
                        labels++;
                        INSIST(labels <= 127);