(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:
@@ -1776,7 +1776,8 @@ renamecmd(char *from, char *to)
|
|||||||
static void
|
static void
|
||||||
dolog(struct sockaddr *sa, int sa_len)
|
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
|
#ifdef HAVE_SETPROCTITLE
|
||||||
snprintf(proctitle, sizeof(proctitle), "%s: connected", remotehost);
|
snprintf(proctitle, sizeof(proctitle), "%s: connected", remotehost);
|
||||||
setproctitle(proctitle);
|
setproctitle(proctitle);
|
||||||
|
Reference in New Issue
Block a user