summaryrefslogtreecommitdiffstats
path: root/src/resolvers.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-15 07:14:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-15 07:14:19 +0000
commit4e5889d7f2bf91ee9e1274c0c8c324b59145fabc (patch)
tree49534c15e342892cf68010055159b99ce32c6baf /src/resolvers.c
parentAdding upstream version 3.0.1. (diff)
downloadhaproxy-b15fa2074192aa443b38a3783232b3392767724c.tar.xz
haproxy-b15fa2074192aa443b38a3783232b3392767724c.zip
Adding upstream version 3.0.2.upstream/3.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/resolvers.c')
-rw-r--r--src/resolvers.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resolvers.c b/src/resolvers.c
index 47b0cce..640c9c2 100644
--- a/src/resolvers.c
+++ b/src/resolvers.c
@@ -3919,8 +3919,12 @@ static int rslv_promex_metric_info(unsigned int id, struct promex_metric *metric
static void *rslv_promex_start_ts(void *unused, unsigned int id)
{
- struct resolvers *resolver = LIST_NEXT(&sec_resolvers, struct resolvers *, list);
+ struct resolvers *resolver;
+ if (LIST_ISEMPTY(&sec_resolvers))
+ return NULL;
+
+ resolver = LIST_NEXT(&sec_resolvers, struct resolvers *, list);
return LIST_NEXT(&resolver->nameservers, struct dns_nameserver *, list);
}