diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-06-19 02:24:14 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-06-19 02:24:14 +0000 |
commit | 6807e726b13678a8ee744746d67d02894f10c969 (patch) | |
tree | 680fd8d2afa963dd28ca374c2189a1d968341ea1 | |
parent | 58184c3c02ee681ee80b07b5d2db7301a275a2a7 (diff) |
fixed compilation error with --disable-ipv6.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3104 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libsylph/socket.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2012-06-19 + + * libsylph/socket.c: sock_info_connect_by_hostname(): fixed + compilation error with --disable-ipv6 (thanks to Jerry Heyman). + 2012-06-18 * version 3.2.0beta9 diff --git a/libsylph/socket.c b/libsylph/socket.c index 52a3fb63..1c6c80d9 100644 --- a/libsylph/socket.c +++ b/libsylph/socket.c @@ -843,7 +843,7 @@ static gint sock_info_connect_by_hostname(SockInfo *sock) memset(&ad, 0, sizeof(ad)); ad.sin_family = AF_INET; - ad.sin_port = htons(port); + ad.sin_port = htons(sock->port); if (!my_inet_aton(sock->hostname, &ad.sin_addr)) { if ((hp = my_gethostbyname(sock->hostname)) == NULL) { @@ -871,6 +871,8 @@ static gint sock_info_connect_by_hostname(SockInfo *sock) sock->state = CONN_FAILED; else sock->state = CONN_ESTABLISHED; + + return ret; } #else /* INET6 */ |