Commit 6b6e9fd8 authored by Mark Andrews's avatar Mark Andrews
Browse files

Remove redundant check for listener being non-NULL

parent 858082de
......@@ -1256,10 +1256,8 @@ add_listener(named_controls_t *cp, controllistener_t **listenerp,
"command channel listening on %s", socktext);
*listenerp = listener;
} else {
if (listener != NULL) {
listener->exiting = true;
free_listener(listener);
}
listener->exiting = true;
free_listener(listener);
if (control != NULL) {
cfg_obj_log(control, named_g_lctx, ISC_LOG_WARNING,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment