From: Wouter Wijngaards Date: Fri, 1 Oct 2010 13:55:16 +0000 (+0000) Subject: test update and nicer text output for unbound-anchor X-Git-Tag: release-1.4.7rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb978ff7be3b6787f277d809d8de4437eb64b2e4;p=thirdparty%2Funbound.git test update and nicer text output for unbound-anchor git-svn-id: file:///svn/unbound/trunk@2273 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index 1550e72bb..6edf88209 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -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"); diff --git a/testdata/10-unbound-anchor.tpkg b/testdata/10-unbound-anchor.tpkg index 652c2d5f3..a1bd9229c 100644 Binary files a/testdata/10-unbound-anchor.tpkg and b/testdata/10-unbound-anchor.tpkg differ