tcp: fix build breakage caused by hrev49265.

There's currently a debate on the ML as to whether this should
be '== 0' or '!= 0', though.
This commit is contained in:
Augustin Cavalier
2015-06-10 12:34:04 -04:00
parent 4b2d018be4
commit 2da6584ad0
@@ -796,7 +796,7 @@ TCPEndpoint::SendData(net_buffer *buffer)
return EDESTADDRREQ; return EDESTADDRREQ;
if (!is_writable(fState) && !is_establishing(fState)) { if (!is_writable(fState) && !is_establishing(fState)) {
// we only send signals when called from userland // we only send signals when called from userland
if (gStackModule->is_syscall() && (flags & MSG_NOSIGNAL != 0)) if (gStackModule->is_syscall() && ((flags & MSG_NOSIGNAL) != 0))
send_signal(find_thread(NULL), SIGPIPE); send_signal(find_thread(NULL), SIGPIPE);
return EPIPE; return EPIPE;
} }