MINOR: resolvers: Directly call srvrq_update_srv_state() when possible
When the server status must be updated from the result of a SRV resolution,
we can directly call srvrq_update_srv_state(). It is simpler and this avoid
a test on the server DNS resolution.
This patch is mandatory for the next commit. It also rely on "MINOR:
resolvers: Directly call srvrq_update_srv_state() when possible".
diff --git a/src/server.c b/src/server.c
index b8e9354..b631a22 100644
--- a/src/server.c
+++ b/src/server.c
@@ -3295,7 +3295,7 @@
HA_SPIN_LOCK(SERVER_LOCK, &s->lock);
if (s->srvrq == srvrq) {
resolv_unlink_resolution(s->resolv_requester);
- snr_update_srv_status(s, 1);
+ srvrq_update_srv_status(s, 1);
free(s->hostname);
free(s->hostname_dn);
s->hostname = NULL;