diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-01-29 18:21:05 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-01-29 18:21:05 +0000 |
| commit | 0bd288cd6cb5e3f5a0214f8b767113887a2e8919 (patch) | |
| tree | a32b9ad827523286185560cdb198379b4f8d2081 /usr.bin/telnet | |
| parent | ac0711e123ea119914d198876637977b72697747 (diff) | |
Notes
Diffstat (limited to 'usr.bin/telnet')
| -rw-r--r-- | usr.bin/telnet/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index a640becaa1680..33a45481667da 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'; |
