mirror of https://github.com/c-ares/c-ares.git
Commit 46bb820be3
("ares_init_options: don't lose init failure")
changed init behaviour so that earlier errors in initialization
weren't lost. In particular, if the user passes in specific
options but they are not applied (e.g. because of an allocation
failure), that failure needs to be reported back to the user; this
also applies when duplicating a channel with ares_dup().
However, other initialization failures can be ignored and
overridden -- in particular, if init_by_resolv_conf() or
init_by_environment() fail, then falling back to default values
is OK.
So only preserve failures from the init_by_options() stage, not
from all initialization stages.
Fixes issue 60.
pull/20/merge
parent
220b2b5320
commit
55bbe92677
2 changed files with 15 additions and 19 deletions
Loading…
Reference in new issue