From 47a2800e5ee03c056418013f6e8255a5581fca7f Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 21 Sep 2005 14:44:45 +0000 Subject: Fix bogus "cannot resolve service * to port number" error. Simon Barner. svn path=/trunk/; revision=4311 --- servport.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servport.c') 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; -- cgit v1.2.3