From d220511e7f46b5c9a4682eee941470a3a9727a4d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 16 Dec 1999 10:29:18 +0000 Subject: [PATCH] (client_doit): add forgotten ntohs git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7600 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/test/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/test/common.c b/appl/test/common.c index 8ad0b89df..dc9e0fb6b 100644 --- a/appl/test/common.c +++ b/appl/test/common.c @@ -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) {