aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--servport.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index cfb89a37..e62369c3 100644
--- a/NEWS
+++ b/NEWS
@@ -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.
diff --git a/servport.c b/servport.c
index 4d0fe510..01b84607 100644
--- a/servport.c
+++ b/servport.c
@@ -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;