summaryrefslogtreecommitdiff
path: root/src/gmcerts.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-07 14:00:23 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-07 14:00:23 +0200
commit88baf053cd0e282366a618d9de955ab77063ce10 (patch)
tree3a73caea878626c460e2c82597583cb94be702f8 /src/gmcerts.c
parenta806290e35706a16ac917d8fd6c29a2f0fbcdffc (diff)
GmCerts: Fixed checking for expiration time
Diffstat (limited to 'src/gmcerts.c')
-rw-r--r--src/gmcerts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmcerts.c b/src/gmcerts.c
index 8c011137..cf4d7d2d 100644
--- a/src/gmcerts.c
+++ b/src/gmcerts.c
@@ -396,7 +396,7 @@ iBool checkTrust_GmCerts(iGmCerts *d, iRangecc domain, const iTlsCertificate *ce
396 if (trust) { 396 if (trust) {
397 /* We already have it, check if it matches the one we trust for this domain (if it's 397 /* We already have it, check if it matches the one we trust for this domain (if it's
398 still valid. */ 398 still valid. */
399 if (!isAuth && elapsedSeconds_Time(&trust->validUntil) > 0) { 399 if (!isAuth && elapsedSeconds_Time(&trust->validUntil) < 0) {
400 /* Trusted cert is still valid. */ 400 /* Trusted cert is still valid. */
401 const iBool isTrusted = cmp_Block(fingerprint, &trust->fingerprint) == 0; 401 const iBool isTrusted = cmp_Block(fingerprint, &trust->fingerprint) == 0;
402 unlock_Mutex(d->mtx); 402 unlock_Mutex(d->mtx);