diff options
-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 */ |