]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that unbound-control can send file for view_local_datas.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 26 Nov 2018 13:55:36 +0000 (13:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 26 Nov 2018 13:55:36 +0000 (13:55 +0000)
git-svn-id: file:///svn/unbound/trunk@4978 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
smallapp/unbound-control.c

index 879aade0b83665d5f0d08aee4af62b76ef0729e4..dca55b57b0dc977857da77dd5dca8bb4953e02c7 100644 (file)
@@ -4,6 +4,7 @@
        - Fix #4193: Fix that prefetch failure does not overwrite valid cache
          entry with SERVFAIL.
        - Add unbound-control view_local_datas command, like local_datas.
+       - Fix that unbound-control can send file for view_local_datas.
 
 22 November 2018: Wouter
        - With ./configure --with-pyunbound --with-pythonmodule
index ea03f1cd11d442d56a94138189ee4a724d849060..b947198ef0a797f2c5f616ccb06858843bc643a4 100644 (file)
@@ -719,9 +719,10 @@ go_cmd(SSL* ssl, int fd, int quiet, int argc, char* argv[])
        if(argc == 1 && strcmp(argv[0], "load_cache") == 0) {
                send_file(ssl, fd, stdin, buf, sizeof(buf));
        }
-       else if(argc == 1 && (strcmp(argv[0], "local_zones") == 0 ||
+       else if(argc >= 1 && (strcmp(argv[0], "local_zones") == 0 ||
                strcmp(argv[0], "local_zones_remove") == 0 ||
                strcmp(argv[0], "local_datas") == 0 ||
+               strcmp(argv[0], "view_local_datas") == 0 ||
                strcmp(argv[0], "local_datas_remove") == 0)) {
                send_file(ssl, fd, stdin, buf, sizeof(buf));
                send_eof(ssl, fd);