Fix incorrect logical expression

This commit is contained in:
Michele Guerini Rocco 2023-06-17 10:29:21 +02:00
parent 533868b21e
commit c7f3f9df4e
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -51,8 +51,8 @@ void TracerouteListener::listen(class TracerouteEvents &tracerouteEvents) {
activeFds = (int*)malloc(eventCount * sizeof(int));
for (i=0;i<FD_COUNT;i++) {
if ((fds[i].revents & POLLIN == POLLIN) ||
(fds[i].revents & POLLPRI == POLLPRI)) {
if (((fds[i].revents & POLLIN) == POLLIN) ||
((fds[i].revents & POLLPRI) == POLLPRI)) {
activeFds[index++] = fds[i].fd;
}
}