Skip to content

Commit

Permalink
Remove failed listener from home->listeners before freeing
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Jul 19, 2024
1 parent fb8310d commit fb9693f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fb9693f

Please sign in to comment.