]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix bug#301.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Mar 2010 09:38:06 +0000 (09:38 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Mar 2010 09:38:06 +0000 (09:38 +0000)
git-svn-id: file:///svn/unbound/trunk@2057 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
smallapp/unbound-checkconf.c
testdata/04-checkconf.tpkg

index 2ffbc693e24b74f78804a37ac2d304df8aab5bb9..496d60dbf4799a53c079bcee7d0d423478a7fdf0 100644 (file)
@@ -1,6 +1,8 @@
 22 March 2010: Wouter
        - unbound-host disables use-syslog from config file so that the
          config file for the main server can be used more easily.
+       - fix bug#301: unbound-checkconf could not parse interface
+         '0.0.0.0@5353', even though unbound itself worked fine.
 
 19 March 2010: Wouter
        - fix fwd_ancil test to pass if the socket options are not supported.
index 40ca6b72b4c1205838ae67943c63b245aa0266f2..bed13c7da514c46c347d2d8b521e5b5025faef83 100644 (file)
@@ -157,7 +157,7 @@ interfacechecks(struct config_file* cfg)
        socklen_t alen;
        int i, j;
        for(i=0; i<cfg->num_ifs; i++) {
-               if(!ipstrtoaddr(cfg->ifs[i], UNBOUND_DNS_PORT, &a, &alen)) {
+               if(!extstrtoaddr(cfg->ifs[i], &a, &alen)) {
                        fatal_exit("cannot parse interface specified as '%s'",
                                cfg->ifs[i]);
                }
index 4b236ce9c6429828ee97b2deedd8624f6f3c97e5..f2ffe3535ff78f945ae5a39150321bfdaf320363 100644 (file)
Binary files a/testdata/04-checkconf.tpkg and b/testdata/04-checkconf.tpkg differ