(mini_inetd): fix lack of brain (not permanently)

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7577 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-12-12 00:03:56 +00:00
parent e64fa4e49d
commit 22c4f5bf5b

View File

@@ -101,6 +101,8 @@ mini_inetd (int port)
hints.ai_flags = AI_PASSIVE;
hints.ai_socktype = SOCK_STREAM;
snprintf (portstr, sizeof(portstr), "%d", ntohs(port));
error = getaddrinfo (NULL, portstr, &hints, &ai);
if (error)
errx (1, "getaddrinfo: %s", gai_strerror (error));