]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tevent: Fix Coverity ID 1649524 Dereference before null check
authorVolker Lendecke <vl@samba.org>
Fri, 20 Jun 2025 07:15:56 +0000 (09:15 +0200)
committerAnoop C S <anoopcs@samba.org>
Fri, 20 Jun 2025 10:14:37 +0000 (10:14 +0000)
The only caller of epoll_event_loop gives a non-NULL pointer.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
lib/tevent/tevent_epoll.c

index d13641ec347b6d481fdad917bab4df3f31f52d12..ee5c96a95a34ade5f65ae456c73e8309ebef9ca0 100644 (file)
@@ -614,7 +614,7 @@ static int epoll_event_loop(struct epoll_event_context *epoll_ev, struct timeval
                return -1;
        }
 
-       if (ret == 0 && tvalp) {
+       if (ret == 0) {
                /*
                 * tevent_context_set_wait_timeout(0) was used.
                 */