mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-11 05:48:41 +00:00
CLEANUP: Apply bug_on.cocci
The changes look safe to me, even if `DEBUG_STRICT` is not enabled.
This commit is contained in:
parent
c1af0bae69
commit
16554245e2
@ -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) {
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user