aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-06-19 02:24:14 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-06-19 02:24:14 +0000
commit6807e726b13678a8ee744746d67d02894f10c969 (patch)
tree680fd8d2afa963dd28ca374c2189a1d968341ea1 /libsylph
parent58184c3c02ee681ee80b07b5d2db7301a275a2a7 (diff)
fixed compilation error with --disable-ipv6.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3104 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/socket.c4
1 files changed, 3 insertions, 1 deletions
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 */