CID 309658: Null pointer dereferences (REVERSE_INULL) in lib/dns/zone.c
Coverity Scan identified null pointer dereference on main
and later on v9_16
:
*** CID 309658: Null pointer dereferences (REVERSE_INULL)
/lib/dns/zone.c: 13461 in create_query()
13455 if (qname != NULL) {
13456 dns_message_puttempname(message, &qname);
13457 }
13458 if (qrdataset != NULL) {
13459 dns_message_puttemprdataset(message, &qrdataset);
13460 }
>>> CID 309658: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "message" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
13461 if (message != NULL) {
13462 dns_message_detach(&message);
13463 }
13464 return (result);
13465 }
13466
Adding to %"October 2020 (9.11.24, 9.11.24-S1, 9.16.8, 9.17.6)" milestone as this slipped-in this milestone.