Commit Graph

30 Commits

Author SHA1 Message Date
christos 4d416d886b belated removal of the advertising clause. 2015-02-24 17:56:20 +00:00
christos 9a0178b83d Mark the dup of the resolv fd for close on exec. 2014-09-16 01:29:48 +00:00
christos 173d90915f provide a patchable __res_conf_name for testing purposes. 2014-01-08 22:58:50 +00:00
wiz d860f590d4 Fix typo ("then" instead of "than") 2013-12-09 09:35:16 +00:00
christos 2a7b0a49fb add a check-names option, now that the default is no-check-names 2012-09-09 18:04:26 +00:00
matt 504f867176 Use C89 Prototypes.
Remove use of __P
2012-03-20 17:44:17 +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 9292cfb210 close on exec fixes:
- open + fcntl -> open O_CLOEXEC
- configuration database file descriptors that can stay open are now opened
  fopen(db, "re")
2011-10-15 23:00:01 +00:00
christos e942b6ecb2 expose res_check. 2009-10-24 17:24:01 +00:00
christos 249296c41c Add a knote to keep track when resolv.conf gets changed and re-initialize.
While here fix a memory leak when calling res_vinit with an already inited
res_state.
2009-10-24 05:35:37 +00:00
christos 2cca8c559f Bring back binary compatibility with the previous version of the resolver.
There was no room to allocate 16 bytes for _rnd in the struct in the _LP64
case, so we dynamically allocate now. Also put the _rnd field last, so that
we are bitwise compatible too. Now of course we've run out of space, so
next time will need to perform more evil tricks to fit.
2009-04-20 14:42:12 +00:00
christos 1408cbc26a we are not guaranteed that the ext pointer is going to be null at this point
so don't attempt to free.
2009-04-16 14:56:51 +00:00
christos 50ce2a6bdf fix lint issues and actual bugs lint found (missing break statements) 2009-04-12 19:43:37 +00:00
christos 59a755a40f merge libbind and bump. 2009-04-12 17:07:16 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
christos 7ce5e09d1b - protect DEBUG again because we should be able to set it from the Makefile
- add a missing cast to pacify lint.
2008-06-21 23:37:53 +00:00
christos 3873655b27 updates from bind-9-5-0 2008-06-21 20:41:48 +00:00
ghen 225c5452c3 Resolve conflicts. 2007-03-30 20:23:03 +00:00
christos 233898bdaa Only try free-ing a version of res if it is not supposed to be pre-inited
like before. Fixes issues with programs passing random uninitialized data
as res_state.
2007-02-09 22:29:40 +00:00
christos 41b0e71e94 Don't check for ext being NULL to destroy the res_state. Instead check
the option bits like we did before.
2007-01-28 07:54:01 +00:00
christos 91eccc4aa8 Fix minor compilation issues. 2007-01-27 23:02:12 +00:00
christos d73eb73dc8 merge in resolver portion of bind-9.4.0-rc2 2007-01-27 22:26:43 +00:00
christos 23b08f8966 Coverity CID 618: Comment out dead code. 2006-03-19 03:10:08 +00:00
christos 0126713300 don't re-define DEBUG 2006-01-24 17:39:44 +00:00
tsarna 064cb14faa Rest of fix for PR#31184: getaddrinfo() now honors resolv.conf sortlist
directive for dns answers.

Also, unifdef the RESLVSORT (non-)option sillyness.

Reviewed by christos.
2005-09-15 23:33:41 +00:00
christos 5ce4c264ed disable weak aliases for now; the resolver header file adds __ to all the
names.
2004-05-21 16:03:05 +00:00
christos 6f3786f41c namespace protection for resolver routines. 2004-05-21 15:35:05 +00:00
christos ca31adbdcc netbsd rcsid. 2004-05-20 19:43:39 +00:00
christos d398b3c4b9 add casts to silence lint. 2004-05-20 17:41:00 +00:00
christos 2b237084d1 Import libc portion of the resolver from bind9 2004-05-20 17:18:54 +00:00