mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 00:57:02 +02: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);
|
struct listener *l = objt_listener(fdtab[fd].owner);
|
||||||
int max_accept;
|
int max_accept;
|
||||||
|
|
||||||
if(!l)
|
BUG_ON(!l);
|
||||||
ABORT_NOW();
|
|
||||||
|
|
||||||
if (fdtab[fd].state & FD_POLL_IN) {
|
if (fdtab[fd].state & FD_POLL_IN) {
|
||||||
|
|
||||||
|
@ -201,8 +201,7 @@ void quic_sock_fd_iocb(int fd)
|
|||||||
struct sockaddr_storage saddr = {0};
|
struct sockaddr_storage saddr = {0};
|
||||||
socklen_t saddrlen;
|
socklen_t saddrlen;
|
||||||
|
|
||||||
if (!l)
|
BUG_ON(!l);
|
||||||
ABORT_NOW();
|
|
||||||
|
|
||||||
if (!(fdtab[fd].state & FD_POLL_IN) || !fd_recv_ready(fd))
|
if (!(fdtab[fd].state & FD_POLL_IN) || !fd_recv_ready(fd))
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user