From 8bfbd81fecab8727e814a56686f087dff5d269d1 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 3 Oct 2019 16:22:42 +0200 Subject: [PATCH] Changelog entry for #86 and whitespace fix. - Merge #86 from psquarejho: Added -b source address option to smallapp/unbound-anchor.c. --- doc/Changelog | 2 ++ smallapp/unbound-anchor.c | 9 ++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 1a7f7f425..5384dabec 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,8 @@ - Merge #90 from vcunat: fix build with nettle-3.5. - Merge 1.9.4 release with fix for vulnerability CVE-2019-16866. - Continue with development of 1.9.5. + - Merge #86 from psquarejho: Added -b source address option to + smallapp/unbound-anchor.c. 26 September 2019: Wouter - Merge #87 from hardfalcon: Fix contrib/unbound.service.in, diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index d2d49e7af..5899d1428 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -1941,12 +1941,11 @@ do_certupdate(const char* root_anchor_file, const char* root_cert_file, /* lookup A, AAAA for the urlname (or parse urlname if IP address) */ ip_list = resolve_name(urlname, port, res_conf, root_hints, debugconf, srcaddr, ip4only, ip6only); - - if(srcaddr && !(src = parse_ip_addr(srcaddr, 0))) { - if(verb) printf("cannot parse source address: %s\n", srcaddr); - exit(0); - } + if(srcaddr && !(src = parse_ip_addr(srcaddr, 0))) { + if(verb) printf("cannot parse source address: %s\n", srcaddr); + exit(0); + } #ifdef USE_WINSOCK if(1) { /* libunbound finished, startup WSA for the https connection */ -- 2.47.3