2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Remove redundant check for listener being non-NULL

This commit is contained in:
Mark Andrews
2020-07-06 13:16:33 +10:00
parent a87ac96b56
commit c91dc92410

View File

@@ -1256,10 +1256,8 @@ add_listener(named_controls_t *cp, controllistener_t **listenerp,
"command channel listening on %s", socktext); "command channel listening on %s", socktext);
*listenerp = listener; *listenerp = listener;
} else { } else {
if (listener != NULL) { listener->exiting = true;
listener->exiting = true; free_listener(listener);
free_listener(listener);
}
if (control != NULL) { if (control != NULL) {
cfg_obj_log(control, named_g_lctx, ISC_LOG_WARNING, cfg_obj_log(control, named_g_lctx, ISC_LOG_WARNING,