diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-05 16:54:52 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-05 16:54:52 +0800 |
commit | e1ce555abbfc75808df1d509c46e513264067cb6 (patch) | |
tree | 8dbd2929fb0dd617a6913464e7a2e3302841fad1 /camel | |
parent | 91d5ce8aa1c6dd664b78605bcb37a41234acea9e (diff) | |
download | gsoc2013-evolution-e1ce555abbfc75808df1d509c46e513264067cb6.tar.gz gsoc2013-evolution-e1ce555abbfc75808df1d509c46e513264067cb6.tar.zst gsoc2013-evolution-e1ce555abbfc75808df1d509c46e513264067cb6.zip |
check the right return of the socket call, dont set fd to the value of the
2004-01-05 Not Zed <NotZed@Ximian.com>
* 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
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-tcp-stream-raw.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 8df67af2bc..c44a3fb6aa 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2004-01-05 Not Zed <NotZed@Ximian.com> + + * 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! + 2003-12-27 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-raw.c (socket_connect): Save errno and check 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); |