mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 14:54:49 -04:00
remove redundant DNS_ERR_CANCEL check, move comment
This commit is contained in:
parent
94d2336070
commit
46b806084e
9
evdns.c
9
evdns.c
@ -2251,16 +2251,15 @@ nameserver_probe_callback(int result, char type, int count, int ttl, void *addre
|
|||||||
(void) addresses;
|
(void) addresses;
|
||||||
|
|
||||||
if (result == DNS_ERR_CANCEL) {
|
if (result == DNS_ERR_CANCEL) {
|
||||||
|
/* We canceled this request because the nameserver came up
|
||||||
|
* for some other reason. Do not change our opinion about
|
||||||
|
* the nameserver. */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EVDNS_LOCK(ns->base);
|
EVDNS_LOCK(ns->base);
|
||||||
ns->probe_request = NULL;
|
ns->probe_request = NULL;
|
||||||
if (result == DNS_ERR_CANCEL) {
|
if (result == DNS_ERR_NONE || result == DNS_ERR_NOTEXIST) {
|
||||||
/* We canceled this request because the nameserver came up
|
|
||||||
* for some other reason. Do not change our opinion about
|
|
||||||
* the nameserver. */
|
|
||||||
} else if (result == DNS_ERR_NONE || result == DNS_ERR_NOTEXIST) {
|
|
||||||
/* this is a good reply */
|
/* this is a good reply */
|
||||||
nameserver_up(ns);
|
nameserver_up(ns);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user