aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/camel-tcp-stream-raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-tcp-stream-raw.c b/camel/camel-tcp-stream-raw.c
index fc4b5b53d0..707fcfec94 100644
--- a/camel/camel-tcp-stream-raw.c
+++ b/camel/camel-tcp-stream-raw.c
@@ -588,7 +588,7 @@ stream_setsockopt (CamelTcpStream *stream, const CamelSockOptData *data)
return -1;
set = data->value.non_blocking ? O_NONBLOCK : 0;
- flags = (flags & ~O_NONBLOCK) | (set & O_NONBLOCK);
+ flags = (flags & ~O_NONBLOCK) | set;
if (fcntl (((CamelTcpStreamRaw *)stream)->sockfd, F_SETFL, flags) == -1)
return -1;