CLEANUP: Apply bug_on.cocci

The changes look safe to me, even if `DEBUG_STRICT` is not enabled.
This commit is contained in:
Tim Duesterhus 2021-09-15 13:58:49 +02:00 committed by Willy Tarreau
parent c1af0bae69
commit 16554245e2
2 changed files with 2 additions and 4 deletions

View File

@ -3497,8 +3497,7 @@ void syslog_fd_handler(int fd)
struct listener *l = objt_listener(fdtab[fd].owner);
int max_accept;
if(!l)
ABORT_NOW();
BUG_ON(!l);
if (fdtab[fd].state & FD_POLL_IN) {

View File

@ -201,8 +201,7 @@ void quic_sock_fd_iocb(int fd)
struct sockaddr_storage saddr = {0};
socklen_t saddrlen;
if (!l)
ABORT_NOW();
BUG_ON(!l);
if (!(fdtab[fd].state & FD_POLL_IN) || !fd_recv_ready(fd))
return;