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