summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritojun <>2000-03-13 02:18:36 +0000
committeritojun <>2000-03-13 02:18:36 +0000
commit61d48054411bb6ca7d64160cbc2b526138769ea2 (patch)
treec611a979ba1093fd9af63d1d936346f1db5226b2
parent3e6562e2a770041c3b20bf8178470b6f81da3406 (diff)
downloadopenbsd-61d48054411bb6ca7d64160cbc2b526138769ea2.tar.gz
openbsd-61d48054411bb6ca7d64160cbc2b526138769ea2.tar.bz2
openbsd-61d48054411bb6ca7d64160cbc2b526138769ea2.zip
don't process NI_NOFQDN, since the currently coded behavior is not specwise
correct.
-rw-r--r--src/lib/libc/net/getnameinfo.c4
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 }