Skip to content

Commit

Permalink
Never pass invalid send flags
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB authored Sep 29, 2021
1 parent c06112c commit 0ebdde0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ int bsd_send(LIBUS_SOCKET_DESCRIPTOR fd, const char *buf, int length, int msg_mo
#ifdef MSG_MORE

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

#else

Expand Down

0 comments on commit 0ebdde0

Please sign in to comment.