From e1ce555abbfc75808df1d509c46e513264067cb6 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 5 Jan 2004 08:54:52 +0000 Subject: check the right return of the socket call, dont set fd to the value of the 2004-01-05 Not Zed * camel-tcp-stream-raw.c (socket_connect): check the right return of the socket call, dont set fd to the value of the -1 check! svn path=/trunk/; revision=24040 --- camel/camel-tcp-stream-raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-tcp-stream-raw.c') diff --git a/camel/camel-tcp-stream-raw.c b/camel/camel-tcp-stream-raw.c index d2cee82c0a..8981200c28 100644 --- a/camel/camel-tcp-stream-raw.c +++ b/camel/camel-tcp-stream-raw.c @@ -305,7 +305,7 @@ socket_connect (struct hostent *h, int port) } #endif - if ((fd = socket (h->h_addrtype, SOCK_STREAM, 0) == -1)) + if ((fd = socket (h->h_addrtype, SOCK_STREAM, 0)) == -1) return -1; cancel_fd = camel_operation_cancel_fd (NULL); -- cgit v1.2.3