]> git.ipfire.org Git - thirdparty/bind9.git/commit
Silence unchecked return of dns_db_find()
authorMark Andrews <marka@isc.org>
Thu, 6 Feb 2020 00:02:55 +0000 (11:02 +1100)
committerMark Andrews <marka@isc.org>
Fri, 7 Feb 2020 08:56:52 +0000 (08:56 +0000)
commite8bf82efc6dfffa7f17117617c6dfe32ce7ac96d
tree6e0e3883c428503cb069041acaf53bc91877ecd7
parent98d5109e82b6b1d64776fe64153a9ff49f68826c
Silence unchecked return of dns_db_find()

190        dns_rdataset_init(&rdataset);
    3. Condition r == 0, taking true branch.
    4. Condition result, taking false branch.

CID 1452691 (#1 of 1): Unchecked return value (CHECKED_RETURN)
5. check_return: Calling dns_db_find without checking return
value (as is done elsewhere 39 out of 45 times).

191        check_assertion(dns_db_find(db1, dns_rootname, v2,
192                                    dns_rdatatype_soa, 0, 0, NULL,
193                                    name, &rdataset, NULL));
lib/dns/tests/dbversion_test.c