Skip to content

Commit 0ebdde0

Browse files
Never pass invalid send flags
1 parent c06112c commit 0ebdde0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bsd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ int bsd_send(LIBUS_SOCKET_DESCRIPTOR fd, const char *buf, int length, int msg_mo
187187
#ifdef MSG_MORE
188188

189189
// for Linux we do not want signals
190-
return send(fd, buf, length, (msg_more * MSG_MORE) | MSG_NOSIGNAL);
190+
return send(fd, buf, length, ((msg_more != 0) * MSG_MORE) | MSG_NOSIGNAL);
191191

192192
#else
193193

0 commit comments

Comments
 (0)