From b9c43bc08ae045e44f76d779263670cf919743be Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Fri, 3 Jan 2020 16:24:36 +0000 Subject: [PATCH] reject: Don't reject for expired K-lines --- ircd/reject.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ircd/reject.c b/ircd/reject.c index efff4919..3981af6e 100644 --- a/ircd/reject.c +++ b/ircd/reject.c @@ -250,6 +250,13 @@ check_reject(rb_fde_t *F, struct sockaddr *addr) rb_setselect(F, RB_SELECT_WRITE | RB_SELECT_READ, NULL, NULL); if(rdata->aconf) { + if(rdata->aconf->status & CONF_ILLEGAL) + { + rb_dlinkDelete(&rdata->rnode, &reject_list); + reject_free(rdata); + rb_patricia_remove(reject_tree, pnode); + return 0; + } ddata->aconf = rdata->aconf; ddata->aconf->clients++; ddata->reason = NULL;