Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Commit 21b2735

Browse files
committed
packet: recheck client fds after each parse
necessary so BRB can instakill connections
1 parent 34d26ee commit 21b2735

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ircd/packet.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ read_packet(rb_fde_t * F, void *data)
284284
if(IsAnyDead(client_p))
285285
return;
286286

287+
if(client_p->localClient->F == NULL)
288+
return;
289+
287290
/* Check to make sure we're not flooding */
288291
if(!IsAnyServer(client_p) &&
289292
(rb_linebuf_alloclen(&client_p->localClient->buf_recvq) > ConfigFileEntry.client_flood_max_lines))

0 commit comments

Comments
 (0)