mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Use the return value of isc_portset_create()
There is an omission of assigning the return value coming from the isc_portset_create() function to the result variable. CID 356328: /bin/named/server.c: 8756 in load_configuration() 8750 "creating UDP/IPv4 port set: %s", 8751 isc_result_totext(result)); 8752 goto cleanup_bindkeys_parser; 8753 } 8754 isc_portset_create(named_g_mctx, &v6portset); 8755 if (result != ISC_R_SUCCESS) { >>> CID 356328: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "isc_log_write(named_g_lctx,...". 8756 isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL, 8757 NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR, 8758 "creating UDP/IPv6 port set: %s", 8759 isc_result_totext(result)); 8760 goto cleanup_v4portset; 8761 }
This commit is contained in:
parent
4bc0db5ed2
commit
7ce1f3d872
@ -8764,7 +8764,7 @@ load_configuration(const char *filename, named_server_t *server,
|
||||
isc_result_totext(result));
|
||||
goto cleanup_bindkeys_parser;
|
||||
}
|
||||
isc_portset_create(named_g_mctx, &v6portset);
|
||||
result = isc_portset_create(named_g_mctx, &v6portset);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
|
||||
NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR,
|
||||
|
Loading…
x
Reference in New Issue
Block a user