Skip to content

Commit

Permalink
packet: recheck client fds after each parse
Browse files Browse the repository at this point in the history
necessary so BRB can instakill connections
  • Loading branch information
edk0 committed Oct 17, 2020
1 parent 9f25def commit 35928cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ircd/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ read_packet(rb_fde_t * F, void *data)
if(IsAnyDead(client_p))
return;

if(client_p->localClient->F == NULL)
return;

/* Check to make sure we're not flooding */
if(!IsAnyServer(client_p) &&
(rb_linebuf_alloclen(&client_p->localClient->buf_recvq) > ConfigFileEntry.client_flood_max_lines))
Expand Down

0 comments on commit 35928cd

Please sign in to comment.