diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/net/getnameinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/net/getnameinfo.c b/src/lib/libc/net/getnameinfo.c index 3769e0fa3c..1eddbb0bf0 100644 --- a/src/lib/libc/net/getnameinfo.c +++ b/src/lib/libc/net/getnameinfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getnameinfo.c,v 1.10 2000/02/17 17:09:41 itojun Exp $ */ | 1 | /* $OpenBSD: getnameinfo.c,v 1.11 2000/03/13 02:18:36 itojun Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. | 4 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
@@ -266,10 +266,12 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) | |||
266 | h_error = h_errno; | 266 | h_error = h_errno; |
267 | 267 | ||
268 | if (hp) { | 268 | if (hp) { |
269 | #if 0 | ||
269 | if (flags & NI_NOFQDN) { | 270 | if (flags & NI_NOFQDN) { |
270 | p = strchr(hp->h_name, '.'); | 271 | p = strchr(hp->h_name, '.'); |
271 | if (p) *p = '\0'; | 272 | if (p) *p = '\0'; |
272 | } | 273 | } |
274 | #endif | ||
273 | if (strlen(hp->h_name) > hostlen) { | 275 | if (strlen(hp->h_name) > hostlen) { |
274 | return ENI_MEMORY; | 276 | return ENI_MEMORY; |
275 | } | 277 | } |