aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-tcp-stream-raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-tcp-stream-raw.c')
-rw-r--r--camel/camel-tcp-stream-raw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/camel/camel-tcp-stream-raw.c b/camel/camel-tcp-stream-raw.c
index 8981200c28..04e47ac64b 100644
--- a/camel/camel-tcp-stream-raw.c
+++ b/camel/camel-tcp-stream-raw.c
@@ -390,8 +390,7 @@ stream_connect (CamelTcpStream *stream, struct hostent *host, int port)
g_return_val_if_fail (host != NULL, -1);
- fd = socket_connect (host, port);
- if (fd == -1)
+ if ((fd = socket_connect (host, port)) == -1)
return -1;
raw->sockfd = fd;