diff options
-rw-r--r-- | contrib/telnet/telnet/commands.c | 2 | ||||
-rw-r--r-- | crypto/telnet/telnet/commands.c | 2 | ||||
-rw-r--r-- | usr.bin/telnet/commands.c | 2 |
3 files changed, 3 insertions, 3 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'; diff --git a/crypto/telnet/telnet/commands.c b/crypto/telnet/telnet/commands.c index dd83669..8380c29 100644 --- a/crypto/telnet/telnet/commands.c +++ b/crypto/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'; diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index a640bec..33a4548 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -2274,7 +2274,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'; |