]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
test update and nicer text output for unbound-anchor
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 1 Oct 2010 13:55:16 +0000 (13:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 1 Oct 2010 13:55:16 +0000 (13:55 +0000)
git-svn-id: file:///svn/unbound/trunk@2273 be551aaa-1e26-0410-a405-d3ace91eadb9

smallapp/unbound-anchor.c
testdata/10-unbound-anchor.tpkg

index 1550e72bb1e5bbe15b5f50d9630040de95592e25..6edf8820948f189c8f0a34ed97313c1bd0df512e 100644 (file)
@@ -1816,6 +1816,8 @@ probe_date_allows_certupdate(char* root_anchor_file)
                        " please correct the clock\n");
                return 0;
        }
+       if(last_success == 0)
+               return 1; /* no probe time */
        if(now - last_success < 0) {
                if(verb) printf("the last successful probe is in the future,"
                        " clock was modified\n");
index 652c2d5f3f5d7b538f5114d0ca676c7a529bb3bd..a1bd9229c4688dc6c00841e25a611f8ae5b95f64 100644 (file)
Binary files a/testdata/10-unbound-anchor.tpkg and b/testdata/10-unbound-anchor.tpkg differ