summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbydns.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-12-27 18:21:07 +0000
committerwpaul <wpaul@FreeBSD.org>1996-12-27 18:21:07 +0000
commit7187ede0636788711d157314ae5b131815515a80 (patch)
tree775c627300a0c60282f7459ec5e82dbc339a1dd7 /lib/libc/net/gethostbydns.c
parent3d869b9c34726691683c118cd61329ee5a519a69 (diff)
downloadFreeBSD-src-7187ede0636788711d157314ae5b131815515a80.zip
FreeBSD-src-7187ede0636788711d157314ae5b131815515a80.tar.gz
Small yet significant tweaks/cleanups:
- getservent: o put _yp_check() proto under #ifdef YP where it belongs o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - gethostbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long - getnetbynis: o local YP buffer should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying - ether_addr: o local YP buffers should be YPMAXRECORD + 2 bytes long and should be NUL terminated after copying (in this case it's BUFSIZ + 2 bytes, but it happens that BUFSIZ == YPMAXRECORD. - gethostbydns: o nuke stray 'return(NULL)' in __dns_getanswer() (harmless but looks silly) These are 2.2 candidates. I will wait a few days to make sure these don't break anything and then, if there are no objections, move them to the 2.2 branch.
Diffstat (limited to 'lib/libc/net/gethostbydns.c')
-rw-r--r--lib/libc/net/gethostbydns.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c
index 415bc49..2808c95 100644
--- a/lib/libc/net/gethostbydns.c
+++ b/lib/libc/net/gethostbydns.c
@@ -53,7 +53,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
-static char rcsid[] = "$Id: gethostbydns.c,v 1.13 1996/12/22 22:05:43 wpaul Exp $";
+static char rcsid[] = "$Id: gethostbydns.c,v 1.14 1996/12/24 02:10:24 wpaul Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -414,7 +414,6 @@ __dns_getanswer(answer, anslen, qname, qtype)
host.h_addrtype = AF_INET;
host.h_length = INADDRSZ;
break;
- return(NULL);
}
return(gethostanswer((const querybuf *)answer, anslen, qname, qtype));
OpenPOWER on IntegriCloud