htons should really be ntohs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7612 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -557,7 +557,7 @@ doit_broken (int argc,
|
||||
hints.ai_protocol = IPPROTO_TCP;
|
||||
hints.ai_family = AF_INET;
|
||||
|
||||
snprintf (portstr, sizeof(portstr), "%u", htons(port));
|
||||
snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
|
||||
|
||||
error = getaddrinfo (host, portstr, &hints, &ai);
|
||||
if (error) {
|
||||
|
Reference in New Issue
Block a user