]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix the style of an array de-allocation in dnssec-cds
authorTony Finch <fanf@isc.org>
Mon, 12 Jun 2023 11:51:02 +0000 (12:51 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 23 Aug 2023 12:49:15 +0000 (14:49 +0200)
Mention the element size explicitly, so that `matching_sigs()`,
`signed_loose()`, and `signed_strict()` use the same calculation.

bin/dnssec/dnssec-cds.c

index 21ecec919ad1a09ee283f161167818c39bd67bde..bdb62bf5632ff69290919aa25d05c814ae219ca3 100644 (file)
@@ -739,7 +739,7 @@ signed_strict(dns_rdataset_t *dsset, dns_secalg_t *algo) {
                }
        }
 
-       isc_mem_put(mctx, algo, nkey);
+       isc_mem_put(mctx, algo, nkey * sizeof(algo[0]));
        return (all_ok);
 }