diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-09-21 14:44:45 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-09-21 14:44:45 +0000 |
commit | 47a2800e5ee03c056418013f6e8255a5581fca7f (patch) | |
tree | 3298bae6745bb3b496b6233f224f75e9db22c4f2 | |
parent | 47b40b940159a43557286fdb5ab0db74d4dcc93e (diff) | |
download | fetchmail-47a2800e5ee03c056418013f6e8255a5581fca7f.tar.gz fetchmail-47a2800e5ee03c056418013f6e8255a5581fca7f.tar.bz2 fetchmail-47a2800e5ee03c056418013f6e8255a5581fca7f.zip |
Fix bogus "cannot resolve service * to port number" error. Simon Barner.
svn path=/trunk/; revision=4311
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | servport.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -206,6 +206,7 @@ fetchmail 6.3.0 (not yet released officially): * Fix Japanese translation of "no other fetchmail is running". Debian Bug#329342, Takeshi Hamasaki. (MA) * When getaddrinfo() fails resolving a service, log getaddrinfo() error. (MA) +* Fix bogus "cannot resolve service * to port number" error. Simon Barner. (MA) # INTERNAL CHANGES * Switched to automake. Matthias Andree. @@ -56,9 +56,11 @@ int servport(const char *service) { switch(res->ai_addr->sa_family) { case AF_INET: port = ntohs(((struct sockaddr_in *)res->ai_addr)->sin_port); + break; #ifdef AF_INET6 case AF_INET6: port = ntohs(((struct sockaddr_in6 *)res->ai_addr)->sin6_port); + break; #endif default: goto err; |