From 739ad0bb11ae2573c7fea47d8232ca2c7e7a8ac5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 24 May 2020 18:36:26 +0100 Subject: [PATCH] resolver: Break out adns_initflags value as variable This provides a single place to add flags, which we'll do in a moment. No functional change. Signed-off-by: Ian Jackson --- resolver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resolver.c b/resolver.c index 3a6ad5a..45738ea 100644 --- a/resolver.c +++ b/resolver.c @@ -210,12 +210,14 @@ static list_t *adnsresolver_apply(closure_t *self, struct cloc loc, d=i->data.dict; conf=dict_read_string(d,"config",False,"adns",loc); + adns_initflags iflags = 0; + if (conf) { - if (adns_init_strcfg(&st->ast, 0, 0, conf)) { + if (adns_init_strcfg(&st->ast, iflags, 0, conf)) { fatal_perror("Failed to initialise ADNS"); } } else { - if (adns_init(&st->ast, 0, 0)) { + if (adns_init(&st->ast, iflags, 0)) { fatal_perror("Failed to initialise ADNS"); } } -- 2.30.2