Commit Graph

26 Commits

Author SHA1 Message Date
itojun 095b03757d pull in changes in http://www.isc.org/products/BIND/patches/bind4910.diff
- better error check on __dn_skipname
- more strict reverse lookup handling
2002-11-14 02:14:43 +00:00
itojun d7ec2d5997 fix remote buffer overrun. from openbsd tree (1997). 2002-11-13 00:21:05 +00:00
itojun 62f36ff8e2 allocate 64K recieve buffer for DNS responses. 2002-08-27 08:50:49 +00:00
itojun 5c323232e7 eliminate sprintf, use snprintf. check strlcat error. 2002-08-16 11:30:28 +00:00
itojun 092b3bc66a avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>
correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen).  we eliminate buflen and use
fixed point (ep) as the ending pointer.

this fix is critical.
2002-06-26 06:00:07 +00:00
wiz e3e4fede44 __STDC__ is always defined on NetBSD. 2002-05-26 14:48:19 +00:00
christos 663f790f35 remove redundant declarations. 2000-12-20 20:51:08 +00:00
mycroft 605490369c Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
lukem d896261208 back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem b48252f365 * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif
1999-09-16 11:44:54 +00:00
kleink 0b4eeeca95 Use a _files prefix for local backend routines; would clash with namespace.h
otherwise.
1999-05-04 15:11:42 +00:00
christos 8fe3352a10 sprinkle argsused till lint smiles at you. 1999-05-03 15:17:13 +00:00
lukem 257ec2e899 specifically include stdarg/varargs.h 1999-04-18 02:27:53 +00:00
christos a45cc02ea7 add ARGSUSED 1999-01-20 13:09:04 +00:00
lukem 6b348d99e9 constify ns_dtab defs 1999-01-19 08:26:35 +00:00
lukem 0ae6c2e5b8 convert to new nsdispatch(3) 1999-01-19 08:01:48 +00:00
lukem df91e2ba06 support nis lookups for getnetby*() 1999-01-19 04:10:23 +00:00
lukem 531c1c25e4 remove unused vars. remove register 1999-01-16 11:43:08 +00:00
lukem 2bf40fa435 pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)
1999-01-16 07:48:23 +00:00
pk d92652f4ae Check the results of argument decomposition in octets to prevent
garbage being sent to name servers.
1998-12-05 13:17:55 +00:00
christos 2c89343c25 delint 1998-11-13 15:46:52 +00:00
perry 198f98faf0 $Id: -> Id: (to make hunting down other bad Ids easier). 1998-01-06 05:01:16 +00:00
mikel e37bd19b9b sync __getnetbyaddr() prototypes with the one in getnetbyaddr.c; from
Krister Walfridsson in PR lib/4009
1997-08-19 05:02:49 +00:00
thorpej c91bdb8141 - Add __weak_alias() namespace protection and update for changes to
getnetnyname.c and getnetbyaddr.c.
- Now that getnetbyname() and getnetbyaddr() support looking up their
  entries via BIND (they were previously file-only), add "lookup ..."
  dispatch support (in /etc/resolv.conf), a'la gethostby*().
1997-07-31 23:43:26 +00:00
mrg 38bfb6cd0a merge bind 4.9.6 resolver. still need to fix <resolv.h> 1997-07-20 13:33:17 +00:00
mrg d507e9e46d bind 4.9.6 resolver files. 1997-07-20 04:07:42 +00:00