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

Merge branch '2492-304936-dereference-before-null-check' into 'main'

Resolve "CID 304936: Dereference before null check"

Closes #2492

See merge request isc-projects/bind9!4683
This commit is contained in:
Mark Andrews
2021-02-23 11:57:29 +00:00

View File

@@ -1189,11 +1189,9 @@ add_listener(named_controls_t *cp, controllistener_t **listenerp,
return;
cleanup:
if (listener != NULL) {
isc_refcount_decrement(&listener->refs);
listener->exiting = true;
free_listener(listener);
}
isc_refcount_decrement(&listener->refs);
listener->exiting = true;
free_listener(listener);
if (control != NULL) {
cfg_obj_log(control, named_g_lctx, ISC_LOG_WARNING,