(doit): call inet_ntop with correct af, noted by Ake Sandgren

<ake@cs.umu.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9665 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-02-09 14:45:30 +00:00
parent aa5a20e4ed
commit ecdd5eff7c

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999 Kungliga Tekniska H<>gskolan
* Copyright (c) 1999 - 2001 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -64,7 +64,7 @@ doit (int af,
}
} else if (flags & NI_NAMEREQD) {
return EAI_NONAME;
} else if (inet_ntop (AF_INET, addr, host, hostlen) == NULL)
} else if (inet_ntop (af, addr, host, hostlen) == NULL)
return EAI_SYSTEM;
}
}