diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-11-20 15:30:28 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-20 17:52:30 +0100 |
commit | 830174c7b52181705dca44cd2fae4a8baa5f6111 (patch) | |
tree | d57ab472ffee196fe1f7e6f677d971d4e1cc06de /nDPIsrvd.c | |
parent | bb9f02719de6999e708b3c04c5c2f237653b9a58 (diff) |
Fixed possible buffer underflow.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r-- | nDPIsrvd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nDPIsrvd.c b/nDPIsrvd.c index dd539fd73..83191e539 100644 --- a/nDPIsrvd.c +++ b/nDPIsrvd.c @@ -1516,8 +1516,8 @@ static int mainloop(struct nio * const io) static int setup_event_queue(struct nio * const io) { #ifdef ENABLE_EPOLL - if ((nDPIsrvd_options.use_poll == 0 && nio_use_epoll(io, 32) != NIO_SUCCESS) - || (nDPIsrvd_options.use_poll != 0 && nio_use_poll(io, nDPIsrvd_MAX_REMOTE_DESCRIPTORS) != NIO_SUCCESS)) + if ((nDPIsrvd_options.use_poll == 0 && nio_use_epoll(io, 32) != NIO_SUCCESS) || + (nDPIsrvd_options.use_poll != 0 && nio_use_poll(io, nDPIsrvd_MAX_REMOTE_DESCRIPTORS) != NIO_SUCCESS)) #else if (nio_use_poll(io, nDPIsrvd_MAX_REMOTE_DESCRIPTORS) != NIO_SUCCESS) #endif |