]> Pileus Git - ~andy/fetchmail/commitdiff
Document a bug.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 16 Feb 1998 07:08:58 +0000 (07:08 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 16 Feb 1998 07:08:58 +0000 (07:08 -0000)
svn path=/trunk/; revision=1635

socket.c

index d25451239252cff98b1dcb1ce5b499f6d6736a5f..abfb8e661dfff98007da6fe095a2596862720e94 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -103,6 +103,12 @@ int SockOpen(const char *host, int clientPort)
         if (hp == NULL || (hp->h_length != 4 && hp->h_length != 8))
             return -1;
 
+       /*
+        * FIXME: make this work for multihomed hosts.
+        * We're toast if we get back multiple addresses and h_addrs[0]
+        * (aka h_addr) is not one we can actually connect to; this happens
+        * with multi-homed boxen.
+        */
         memcpy(&ad.sin_addr, hp->h_addr, hp->h_length);
     }
     ad.sin_port = htons(clientPort);