(doit): use getnameinfo_verified
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7527 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -692,9 +692,9 @@ doit(struct sockaddr *who, int who_len)
|
|||||||
}
|
}
|
||||||
#endif /* _SC_CRAY_SECURE_SYS */
|
#endif /* _SC_CRAY_SECURE_SYS */
|
||||||
|
|
||||||
error = getnameinfo (who, who_len, host_addr, sizeof(host_addr),
|
error = getnameinfo_verified (who, who_len, host_addr, sizeof(host_addr),
|
||||||
NULL, 0,
|
NULL, 0,
|
||||||
registerd_host_only ? NI_NAMEREQD : 0);
|
registerd_host_only ? NI_NAMEREQD : 0);
|
||||||
if (error)
|
if (error)
|
||||||
fatal(net, "Couldn't resolve your address into a host name.\r\n\
|
fatal(net, "Couldn't resolve your address into a host name.\r\n\
|
||||||
Please contact your net administrator");
|
Please contact your net administrator");
|
||||||
|
Reference in New Issue
Block a user