From 1919e598553c4bbc8e508bde92d2068f92516c1e Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 13 Feb 2001 11:51:05 +0000 Subject: [PATCH] #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 . --- mutt_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0