Commit Graph

845 Commits

Author SHA1 Message Date
christos b33a0c98e1 CID 975111: Ignore return value from initgroups(). If we failed, then
the failure would be that we could not open the .rhosts file so we fail
closed.
2014-05-28 14:39:02 +00:00
christos e2ecf243c3 fix memory leak
XXX: pullup 6
2014-03-17 13:24:23 +00:00
christos 4f4753b8fe RFC 3542 (section 10.1) states that optlen should only be checked when
opt != NULL (Eitan Adler)
2014-02-07 02:36:06 +00:00
christos c5e15b0d42 CID 1163170, 1164171, resource leak
CID 1161172 double free
2014-01-24 17:26:18 +00:00
drochner 681775d0ca fix memory allocation, and an off-by-one 2014-01-17 12:39:47 +00:00
christos 589ee86777 the addition is handled in the alias. 2014-01-17 02:08:44 +00:00
christos 9bb3fc1adb Move more code into the macro, and fix the bug where realloc would cause
a dangling pointer and memory corruption.
2014-01-17 02:03:44 +00:00
christos 5e97d415bc Remove MAXALIASES limit 2014-01-16 20:59:21 +00:00
wiz 4005ac9717 Sort sections. Remove trailing whitespace. 2014-01-04 15:37:46 +00:00
wiz fa60f938bd Sort sections. Punctuation formatting nits. 2014-01-04 15:37:26 +00:00
christos 3d0abaffba - don't clobber hp in the RES_USE_INET6 case
- increment naddrs in the yp case
- don't use __hostalias(), it is not thread-safe.
2013-12-22 02:45:16 +00:00
christos a296e15ea3 this is supposed to be re-entrant, call don't call __hostalias that uses
a static buffer.
2013-12-22 02:40:48 +00:00
wiz c0e2590a8c Remove annoying comma and sort SEE ALSO. 2013-11-14 00:13:41 +00:00
christos fad7083044 PR/48379: mention kqueue functionality 2013-11-13 23:58:51 +00:00
wiz acfbbe39c1 Try improving the description. 2013-10-31 00:30:14 +00:00
wiz db0dcb5a00 Minor fixes. 2013-10-19 23:34:48 +00:00
christos e29c34aa52 document the scopeid functions 2013-10-19 19:56:56 +00:00
christos 1f484a2734 use new constants 2013-10-19 15:47:02 +00:00
christos c2541c7c76 add inet6_scopeid 2013-10-19 00:08:34 +00:00
christos 4d322dedff move the host file getbyname and getbyaddr functions to sethostent.c so
that they are in a separate file from the dns ones in order for libhack
to use them.
2013-08-27 09:56:12 +00:00
christos d8e9352de5 get rid of bogus + 1 2013-08-22 10:04:28 +00:00
christos 2c0b172d86 fix gethostbyaddr prototype per TOG. 2013-08-19 07:18:42 +00:00
wiz 47f6874b73 Update comment. 2013-08-18 10:40:06 +00:00
christos 5211d3a5ee getnameinfo is now thread-safe so remove bugs section. 2013-08-18 10:00:57 +00:00
christos 298ec155a2 appease lint. 2013-08-18 09:57:16 +00:00
christos 02dd244775 Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3) so it is re-entrant (ahem __ypdomain). These
are not being advertised because there is a bunch of different
implementation of them that have a variety of type signatures.

If people want to follow someone's implementation, it is now easy.
2013-08-16 15:27:12 +00:00
christos 748fc2c7c9 CVE 1020946: Fix res leak. 2013-05-13 17:54:55 +00:00
christos 961429e30c CVE 1020938: Fix memory leak 2013-05-13 13:59:39 +00:00
wiz ce13c0c0df New sentence, new line. Fix minus. Avoid <>.
Remove trailing whitespace.
2013-05-08 18:18:32 +00:00
christos 814d1846cc Clarify which functions are only in libresolv. 2013-05-08 18:06:46 +00:00
wiz 3a2c836a74 New sentence, new line. 2013-05-03 21:13:34 +00:00
christos dfecb5b774 document AI_SRV 2013-05-03 19:34:54 +00:00
christos c641632a69 PR/32373, PR/25827: Add SRV lookup in getaddrinfo(3)
Per DNS-SD (RFC 2782), but only enabled if AI_SRV is set.
2013-05-03 19:31:13 +00:00
christos 0a312e0850 KNF, whitespace police -- no code changes 2013-05-03 19:24:52 +00:00
wiz 35fe9915cb Remove trailing whitespace. 2013-04-07 23:12:36 +00:00
christos d17f9381dd Add a small example. 2013-04-07 22:54:26 +00:00
joerg e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
martin 9200e999a5 Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only. 2012-12-27 07:08:59 +00:00
christos 6d9727ba24 fix outdated includes list. 2012-11-07 15:48:13 +00:00
christos 911623fbd4 add and document AF_LOCAL (and the rest that were not) 2012-09-26 23:13:00 +00:00
christos 98fae1dfe3 implement no-check-names 2012-09-09 16:42:23 +00:00
darrenr 3ec957d580 bin/46703: BSD r-commands use wrong source address for stderr
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46703
Bump libc minor for the addition of rresvport_af_addr()
2012-07-14 15:06:26 +00:00
abs 9e66e6d75e Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-25 22:32:43 +00:00
martin 4df6c44b48 Henning Petersen in PR lib/46561: cosmetic change: avoid self assignement. 2012-06-08 07:54:14 +00:00
matt 504f867176 Use C89 Prototypes.
Remove use of __P
2012-03-20 17:44:17 +00:00
kardel 5d92cd82ed PR pkg/46206
re-establish fqdn lookup when AI_ADDRCONFIG is used in hints
AI_ADDRCONFIG led to fqdn lookup being skipped as the systems didn't
configure any PF_UNSPEC addresses - check was too strict here.
Thnaks to Ryo ONODERA for testing.
2012-03-20 12:04:01 +00:00
kardel 52f5a00d5c PR 46206: fix programmed SIGSEGV
more work is needed as tests seem to indicate that name resolution now
does no seem to work (firefox reports Server not found)
thanks to Ryo ONODERA for testing.
2012-03-20 10:34:33 +00:00
christos 2a6850a9bf Add AI_ADDRCONFIG, which makes getaddrinfo() return only address with families
that are already configured in the system.
2012-03-17 21:56:40 +00:00
christos c5e820cae4 PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
  would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
  builds)

approved by core@
2012-03-13 21:13:30 +00:00
christos 3a7a306503 fix signature according to TOG. 2012-03-04 03:23:35 +00:00