]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add RUNTIME_CHECK() around result = dns_name_copy(..., NULL) calls
authorOndřej Surý <ondrej@sury.org>
Tue, 10 Sep 2019 11:55:18 +0000 (13:55 +0200)
committerMark Andrews <marka@isc.org>
Fri, 4 Oct 2019 04:08:25 +0000 (14:08 +1000)
commit77fe5da6476240e23856db0c09f562899f545bd3
treec88c3aa5db92dc4621ce1f51b296b8391c4b6fbf
parent9adb3ae2d54aff45254740b2a5c36e5abbba8373
Add RUNTIME_CHECK() around result = dns_name_copy(..., NULL) calls

This second commit uses second semantic patch to replace the calls to
dns_name_copy() with NULL as third argument where the result was stored in a
isc_result_t variable.  As the dns_name_copy(..., NULL) cannot fail gracefully
when the third argument is NULL, it was just a bunch of dead code.

Couple of manual tweaks (removing dead labels and unused variables) were
manually applied on top of the semantic patch.

(cherry picked from commit 89b269b0d28e0acf4a1f92414b5df2e86e2a008e)
15 files changed:
bin/dnssec/dnssec-dsfromkey.c
bin/dnssec/dnssec-importkey.c
bin/named/zoneconf.c
bin/tests/system/dyndb/driver/syncptr.c
lib/dns/adb.c
lib/dns/client.c
lib/dns/dnsrps.c
lib/dns/lookup.c
lib/dns/rbt.c
lib/dns/rbtdb.c
lib/dns/resolver.c
lib/dns/sdb.c
lib/dns/sdlz.c
lib/dns/view.c
lib/ns/query.c