From: Miek Gieben Date: Mon, 5 Sep 2005 13:06:50 +0000 (+0000) Subject: gave compile warnings X-Git-Tag: release-1.0.0~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e6785783df080dea07663e168f6b3313409c626;p=thirdparty%2Fldns.git gave compile warnings --- diff --git a/dnssec.c b/dnssec.c index e7b0b04c..e2cace11 100644 --- a/dnssec.c +++ b/dnssec.c @@ -325,8 +325,7 @@ ldns_verify_rrsig(ldns_rr_list *rrset, ldns_rr *rrsig, ldns_rr *key) /* bad sig, inception date has passed */ return LDNS_STATUS_CRYPTO_SIG_NOT_INCEPTED; } -printf("EXP: %u\n", expiration); -printf("NOW: %u\n",now); + if (expiration - now < 0) { /* bad sig, expiration date has passed */ return LDNS_STATUS_CRYPTO_SIG_EXPIRED;