]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use named_g_httpport correctly when creating listeners
authorEvan Hunt <each@isc.org>
Mon, 13 Sep 2021 21:03:51 +0000 (14:03 -0700)
committerEvan Hunt <each@isc.org>
Tue, 14 Sep 2021 20:22:13 +0000 (20:22 +0000)
when the default http port was set on the command line, it was
not used correctly by listeners. [GL #2902]

bin/named/server.c

index dffa7de2890c9ee2510bdea0f383c794aac895fc..014abd21b284235a9c47e795e87daba36b33b2cb 100644 (file)
@@ -11107,7 +11107,7 @@ listenelt_fromconfig(const cfg_obj_t *listener, const cfg_obj_t *config,
                        }
                } else if (http && !do_tls) {
                        if (named_g_httpport != 0) {
-                               port = named_g_port;
+                               port = named_g_httpport;
                        } else {
                                result = named_config_getport(
                                        config, "http-port", &port);