mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 12:13:20 -04:00
[9.20] fix: dev: Fix unitiailized pointer check on getipandkeylist
Function `named_config_getipandkeylist` could, in case of error in the early code attempting to get the `port` or `tls-port`, make a pointer check on a non-initialized value. This is now fixed. Backport of MR !11303 Merge branch 'backport-colin/getipandkeylist-uinitstate' into 'bind-9.20' See merge request isc-projects/bind9!11306
This commit is contained in:
commit
5ed0cf091b
1 changed files with 1 additions and 1 deletions
|
|
@ -819,6 +819,7 @@ named_config_getipandkeylist(const cfg_obj_t *config, const cfg_obj_t *list,
|
|||
isc_result_t result;
|
||||
in_port_t def_port;
|
||||
in_port_t def_tlsport;
|
||||
getipandkeylist_state_t s = {};
|
||||
|
||||
REQUIRE(ipkl != NULL);
|
||||
REQUIRE(ipkl->count == 0);
|
||||
|
|
@ -844,7 +845,6 @@ named_config_getipandkeylist(const cfg_obj_t *config, const cfg_obj_t *list,
|
|||
/*
|
||||
* Process the (nested) list(s).
|
||||
*/
|
||||
getipandkeylist_state_t s = {};
|
||||
result = getipandkeylist(def_port, def_tlsport, config, list,
|
||||
(in_port_t)0, NULL, NULL, mctx, &s);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue