mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-22 10:10:14 -04:00
The first_existing_header_indirect() static function is used only in one place and it has bugs: 1. It doesn't advance the pointer and can cause an infinite loop if it doesn't break out from the loop on the first iteration. 2. It doesn't check if the header EXISTS, though its name indicates that it should. 3. Even if the infinite loop bug is fixed, it would eventually return the last checked header's pointer even if all the candidates do not match the criteria of the selection. Instead of fixing it, remove the function and use simpler code in the place where it was being called. |
||
|---|---|---|
| .. | ||
| dns | ||
| isc | ||
| isccc | ||
| isccfg | ||
| ns | ||
| .gitignore | ||
| meson.build | ||