diff options
Diffstat (limited to 'src/gmcerts.c')
-rw-r--r-- | src/gmcerts.c | 2 |
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); |