]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pacify Coverity (CID #1665464)
authorNick Porter <nick@portercomputing.co.uk>
Tue, 27 Jan 2026 08:49:59 +0000 (08:49 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 27 Jan 2026 08:54:11 +0000 (08:54 +0000)
The number of bytes read is not important - it is simply a trigger to
pop all available messages from the atomic queue.

src/lib/io/control.c

index 86a847ed320c2d4a5a74ddacd168a972935b909c..46d1b3e951a82a8fb198f0afd605cd714f296ffa 100644 (file)
@@ -97,6 +97,12 @@ static void pipe_read(UNUSED fr_event_list_t *el, int fd, UNUSED int flags, void
        size_t message_size;
        uint32_t id = 0;
 
+       /*
+        *  The presence of data on the pipe fd is just a trigger to pop all
+        *  available messages from the atomic queue, so the number of bytes
+        *  read is not important.
+        */
+       /* coverity[check_return] */
        if (read(fd, read_buffer, sizeof(read_buffer)) <= 0) return;
 
        now = fr_time();