From fb9693faaca028f61ddbf3119c89dbe25c69d8fb Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Fri, 19 Jul 2024 18:19:59 +0100 Subject: [PATCH] Remove failed listener from home->listeners before freeing --- src/main/listen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/listen.c b/src/main/listen.c index 2c045b99fdabe..7456f2cf3c1cf 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -3799,6 +3799,9 @@ rad_listen_t *proxy_new_listener(TALLOC_CTX *ctx, home_server_t *home, uint16_t error: close(this->fd); home->last_failed_open = now; +#ifdef WITH_TLS + if (home->listeners && this->nonblock) rbtree_deletebydata(home->listeners, this); +#endif listen_free(&this); return NULL; }