From: Amaury Denoyelle Date: Thu, 26 Aug 2021 13:35:59 +0000 (+0200) Subject: BUG/MINOR: resolvers: mark servers with name-resolution as non purgeable X-Git-Tag: v2.5-dev5~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd56520cdfe1ccb848ae119e8b2dbd6ce62b8a78;p=thirdparty%2Fhaproxy.git BUG/MINOR: resolvers: mark servers with name-resolution as non purgeable When a server is configured with name-resolution, resolvers objects are created with reference to this server. Thus the server is marked as non purgeable to prevent its removal at runtime. This does not need to be backport. --- diff --git a/src/resolvers.c b/src/resolvers.c index 1704d7227a..3b9a246e6d 100644 --- a/src/resolvers.c +++ b/src/resolvers.c @@ -2470,6 +2470,8 @@ static int resolvers_finalize_config(void) err_code |= (ERR_ALERT|ERR_ABORT); continue; } + + srv->flags |= SRV_F_NON_PURGEABLE; } }