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

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

index 1733516eb0a1493a592159e0c2ef5022a4cf69e5..5b74c67eca7ed204a647a449c1dd463b51432f2f 100644 (file)
@@ -506,7 +506,7 @@ static int poll_event_loop_poll(struct tevent_context *ev,
                return 0;
        }
 
-       if (pollrtn == 0 && tvalp) {
+       if (pollrtn == 0) {
                /*
                 * tevent_context_set_wait_timeout(0) was used.
                 */