From 6807e726b13678a8ee744746d67d02894f10c969 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 19 Jun 2012 02:24:14 +0000 Subject: fixed compilation error with --disable-ipv6. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3104 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ libsylph/socket.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1b3674b1..244f8cac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 */ -- cgit v1.2.3