summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_fd_recv.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-11-17 14:08:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-11-17 14:08:44 +0000
commit29c3282e7c73474642dc48d60ef90d79385c2a1b (patch)
tree06eb15ec1674fe35f78d2ddff7ca90b314308a01 /src/libwpactrl/wpactrl_fd_recv.c
parentcc74d3000e81af2533c386b7f55912f2e60e5a99 (diff)
downloadbcnm-29c3282e7c73474642dc48d60ef90d79385c2a1b.tar.xz
Apply smaeul's fixes; add --with-tmpdir configure option
Diffstat (limited to 'src/libwpactrl/wpactrl_fd_recv.c')
-rw-r--r--src/libwpactrl/wpactrl_fd_recv.c2
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 ;
}