]> git.ipfire.org Git - thirdparty/chrony.git/commit
stubs: don't call DNS_Name2IPAddress handler directly
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 29 Sep 2015 15:39:27 +0000 (17:39 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 29 Sep 2015 16:06:33 +0000 (18:06 +0200)
commit967e358dbc93aa7a99c3c0ee2a634f1fedecba74
tree4394f80974999433e9921f905d5ba4836fcbbefe
parent60721d2cc1c09da30b934b7aafabda9d54e2d996
stubs: don't call DNS_Name2IPAddress handler directly

Instead of calling the handler directly schedule a timeout with zero
delay for resolving to make the function behave similarly to the real
asynchronous resolver. This should prevent problems with code that
inadvertently depends on this behavior and which would break only when
compiled without support for asynchronous resolving.
nameserv_async.h
stubs.c