From: Thomas Roessler Date: Tue, 13 Feb 2001 11:51:05 +0000 (+0000) Subject: #472: Due to a bug in the IPv6 socket code "mutt" fails to connect X-Git-Tag: mutt-1-3-16-rel~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1919e598553c4bbc8e508bde92d2068f92516c1e;p=mutt #472: Due to a bug in the IPv6 socket code "mutt" fails to connect to e.g. IPv4 only IMAPv4 servers running on a host with a valid IPv6 address. From Matthias Scheler . --- diff --git a/mutt_socket.c b/mutt_socket.c index 20eb8c29..d653b9d5 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -340,7 +340,7 @@ int raw_socket_open (CONNECTION* conn) fd = socket (cur->ai_family, cur->ai_socktype, cur->ai_protocol); if (fd >= 0) { - if ((rc = socket_connect (fd, res->ai_addr)) == 0) + if ((rc = socket_connect (fd, cur->ai_addr)) == 0) { conn->fd = fd; break;