summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/kern/uipc_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libnetworking/kern/uipc_socket.c')
-rw-r--r--c/src/exec/libnetworking/kern/uipc_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/libnetworking/kern/uipc_socket.c b/c/src/exec/libnetworking/kern/uipc_socket.c
index 0933fea50a..895d1c7d45 100644
--- a/c/src/exec/libnetworking/kern/uipc_socket.c
+++ b/c/src/exec/libnetworking/kern/uipc_socket.c
@@ -350,7 +350,7 @@ sosend(so, addr, uio, top, control, flags)
* Also check to make sure that MSG_EOR isn't used on SOCK_STREAM
* type sockets since that's an error.
*/
- if (resid < 0 || so->so_type == SOCK_STREAM && (flags & MSG_EOR)) {
+ if ((resid < 0) || (so->so_type == SOCK_STREAM && (flags & MSG_EOR))) {
error = EINVAL;
goto out;
}