From 29c3282e7c73474642dc48d60ef90d79385c2a1b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 17 Nov 2019 14:08:44 +0000 Subject: Apply smaeul's fixes; add --with-tmpdir configure option --- src/libwpactrl/wpactrl_fd_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libwpactrl/wpactrl_fd_recv.c') 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 ; } -- cgit v1.2.3