diff options
Diffstat (limited to 'src/libwpactrl/wpactrl_fd_recv.c')
-rw-r--r-- | src/libwpactrl/wpactrl_fd_recv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwpactrl/wpactrl_fd_recv.c b/src/libwpactrl/wpactrl_fd_recv.c index c6d0619..9640b6c 100644 --- a/src/libwpactrl/wpactrl_fd_recv.c +++ b/src/libwpactrl/wpactrl_fd_recv.c @@ -37,5 +37,5 @@ ssize_t wpactrl_fd_recv (int fd, char *s, size_t len) ssize_t r ; do r = recvmsg(fd, &msghdr, bsd_braindeadness_workaround_flags) ; while (r == -1 && errno == EINTR) ; - return r > 0 && msghdr.msg_flags | MSG_TRUNC ? (errno = EMSGSIZE, -1) : r ; + return r > 0 && msghdr.msg_flags & MSG_TRUNC ? (errno = EMSGSIZE, -1) : r ; } |