mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-05 12:15:51 -04:00
find_zone_keys() collects every matching private key into a local list, hands the first DNS_MAXZONEKEYS keys to the caller, and frees the rest. On overflow it destroyed only the first surplus key before breaking out of the loop, so any keys after it stayed linked on the local list and were lost when the function returned. Unlink and destroy every list entry, transferring a key to the caller only while under the limit. No entry is left behind, so a zone with more than DNS_MAXZONEKEYS matching keys no longer leaks memory on each signing attempt. |
||
|---|---|---|
| .. | ||
| dns | ||
| isc | ||
| isccc | ||
| isccfg | ||
| ns | ||
| .gitignore | ||
| meson.build | ||