(dolog): use getnameinfo_verified

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7525 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-12-05 10:53:06 +00:00
parent 27e1b38db1
commit c2b9f6c147

View File

@@ -1776,7 +1776,8 @@ renamecmd(char *from, char *to)
static void
dolog(struct sockaddr *sa, int sa_len)
{
getnameinfo (sa, sa_len, remotehost, sizeof(remotehost), NULL, 0, 0);
getnameinfo_verified (sa, sa_len, remotehost, sizeof(remotehost),
NULL, 0, 0);
#ifdef HAVE_SETPROCTITLE
snprintf(proctitle, sizeof(proctitle), "%s: connected", remotehost);
setproctitle(proctitle);