]> granicus.if.org Git - mutt/commitdiff
#472: Due to a bug in the IPv6 socket code "mutt" fails to connect
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 13 Feb 2001 11:51:05 +0000 (11:51 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 13 Feb 2001 11:51:05 +0000 (11:51 +0000)
to e.g. IPv4 only IMAPv4 servers running on a host with a valid IPv6
address.  From Matthias Scheler <tron@colwyn.zhadum.de>.

mutt_socket.c

index 20eb8c2915be0fb4653e2c4f35dcaaf6c5288d59..d653b9d5219dffb0b7c165b9a6154421d21bf143 100644 (file)
@@ -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;