Mercurial > dovecot > core-2.2
diff src/lib/network.c @ 2113:c5817f302aa6 HEAD
net_gethostbyname() was broken with IPv6 enabled (wasn't really used with
Dovecot anyway). Some other cleanups.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 14 Jun 2004 02:37:40 +0300 |
parents | 24e382b88232 |
children | a307ddd22a3a |
line wrap: on
line diff
--- a/src/lib/network.c Mon Jun 14 00:50:42 2004 +0300 +++ b/src/lib/network.c Mon Jun 14 02:37:40 2004 +0300 @@ -442,7 +442,7 @@ for (ai = origai; ai != NULL; ai = ai->ai_next, count++) { so = (union sockaddr_union *) ai->ai_addr; - sin_get_ip(so, ips[count]); + sin_get_ip(so, &(*ips)[count]); } freeaddrinfo(origai); #else @@ -607,7 +607,7 @@ } /* Get name of TCP service */ -char *net_getservbyport(unsigned short port) +const char *net_getservbyport(unsigned short port) { struct servent *entry;