mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 07:02:04 -04:00
Silence gcc-10-fanalyzer false positive
If 'state == ft_ordinary' then 'label' can't be NULL. Add INSIST to reflect this.
This commit is contained in:
parent
ea305a4877
commit
29f1c1e677
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue