(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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user