(client_doit): add forgotten ntohs

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7600 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-12-16 10:29:18 +00:00
parent acb1a6a04f
commit d220511e7f

View File

@@ -131,7 +131,7 @@ client_doit (const char *hostname, int port, const char *service,
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
snprintf (portstr, sizeof(portstr), "%u", port);
snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
error = getaddrinfo (hostname, portstr, &hints, &ai);
if (error) {