summaryrefslogtreecommitdiff
path: root/src/gmcerts.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-07 14:06:21 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-07 14:06:21 +0200
commitab2e2598cf32348f4bc2d56059c07f404d1e61b7 (patch)
treeb8714975d2e9ff99d83e7b31c29d0d556a724387 /src/gmcerts.c
parentcd8950953ad6c4361fbc140007ce9cc04fef1e6c (diff)
parent88baf053cd0e282366a618d9de955ab77063ce10 (diff)
Merge branch 'dev' of skyjake.fi:skyjake/lagrange into dev
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);