mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-10 03:47:42 +02:00
this version of unbound fails when compiled with CC=clang and -O (edit Makefile), or -O2 (default). If you use no optimizing flag, unittest works.
git-svn-id: file:///svn/unbound/trunk@4425 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -1211,6 +1211,7 @@ check_dates(struct val_env* ve, uint32_t unow,
|
||||
{
|
||||
/* read out the dates */
|
||||
int32_t expi, incep, now;
|
||||
int32_t incepminexpi;
|
||||
memmove(&expi, expi_p, sizeof(expi));
|
||||
memmove(&incep, incep_p, sizeof(incep));
|
||||
expi = ntohl(expi);
|
||||
@@ -1227,7 +1228,9 @@ check_dates(struct val_env* ve, uint32_t unow,
|
||||
} else now = (int32_t)unow;
|
||||
|
||||
/* check them */
|
||||
if(incep - expi > 0) {
|
||||
incepminexpi = incep-expi;
|
||||
if(incepminexpi > 0) {
|
||||
log_info("incep-expi failure");
|
||||
sigdate_error("verify: inception after expiration, "
|
||||
"signature bad", expi, incep, now);
|
||||
*reason = "signature inception after expiration";
|
||||
|
||||
Reference in New Issue
Block a user