summaryrefslogtreecommitdiffstats
path: root/contrib/telnet/telnet/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/telnet/telnet/commands.c')
-rw-r--r--contrib/telnet/telnet/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index dd83669..8380c29 100644
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -2451,7 +2451,7 @@ tn(argc, argv)
if (doaddrlookup)
gni_err = getnameinfo(res->ai_addr, res->ai_addr->sa_len,
_hostname, sizeof(_hostname) - 1, NULL, 0,
- 0);
+ NI_NAMEREQD);
if (gni_err != 0)
(void) strncpy(_hostname, hostp, sizeof(_hostname) - 1);
_hostname[sizeof(_hostname)-1] = '\0';
OpenPOWER on IntegriCloud