mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-02-01 18:56:52 +00:00
lib: Inadvertent assignment in ? operator
In the case where we are using select as the operator *and* we call funcname_thread_add_read_write *and* the fd is already set, we would overwrite the read/write direction to always be READ. Clearly this was a bad idea. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
a1198921f2
commit
907ca8e4d5
@ -719,7 +719,7 @@ funcname_thread_add_read_write (int dir, struct thread_master *m,
|
||||
#else
|
||||
if (FD_ISSET (fd, fdset))
|
||||
{
|
||||
zlog (NULL, LOG_WARNING, "There is already %s fd [%d]", (dir = THREAD_READ) ? "read" : "write", fd);
|
||||
zlog (NULL, LOG_WARNING, "There is already %s fd [%d]", (dir == THREAD_READ) ? "read" : "write", fd);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user