commit | 51d5e3bda7fb07a5f03cb878dd66f673c3ed1a59 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Wed Mar 10 15:46:46 2021 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Mar 12 17:41:28 2021 +0100 |
tree | ce8a18fa0d09e5044d6d1b9f61e008b7db4fcc5b | |
parent | 1dec5c793474027ddffbfca3849e5ca4e9e51083 [diff] |
MINOR: resolvers: Purge answer items when a SRV resolution triggers an error When a SRV request trigger an error, if we decide to handle the error because last_valid duration is expired, the answer list may be purged. All items are considered as obsolete.
diff --git a/src/server.c b/src/server.c index 3b4d41e..412bd42 100644 --- a/src/server.c +++ b/src/server.c
@@ -3293,6 +3293,8 @@ HA_SPIN_UNLOCK(SERVER_LOCK, &s->lock); } + resolv_purge_resolution_answer_records(res); + return 1; }