]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't call dst_key_free(keyp) on an invalid 'keyp'
authorAram Sargsyan <aram@isc.org>
Mon, 24 Mar 2025 16:34:00 +0000 (16:34 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Tue, 25 Mar 2025 08:19:45 +0000 (08:19 +0000)
After a refactoring in 2e6107008dae09d32e3d34fb5423b3d78c4ff651 the
dst_key_free() call is invalid and can cause an assertion. Remove the
dst_key_free() call.

lib/ns/query.c

index 218900dcaf4bfeafa7e699aee68b42dad4bf7f12..1a2ee677c4b1283d2bf71a4db0dcbd70d6c4d7d3 100644 (file)
@@ -2443,8 +2443,6 @@ get_key(ns_client_t *client, dns_db_t *db, dns_rdata_rrsig_t *rrsig,
                        secure = true;
                        break;
                }
-
-               dst_key_free(keyp);
        }
 
        return secure;