diff options
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r-- | src/gmrequest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c index c0697f49..7b110c03 100644 --- a/src/gmrequest.c +++ b/src/gmrequest.c | |||
@@ -343,7 +343,12 @@ int certFlags_GmRequest(const iGmRequest *d) { | |||
343 | 343 | ||
344 | iDate certExpirationDate_GmRequest(const iGmRequest *d) { | 344 | iDate certExpirationDate_GmRequest(const iGmRequest *d) { |
345 | iDate expiry; | 345 | iDate expiry; |
346 | validUntil_TlsCertificate(serverCertificate_TlsRequest(d->req), &expiry); | 346 | if (d->req) { |
347 | validUntil_TlsCertificate(serverCertificate_TlsRequest(d->req), &expiry); | ||
348 | } | ||
349 | else { | ||
350 | iZap(expiry); | ||
351 | } | ||
347 | return expiry; | 352 | return expiry; |
348 | } | 353 | } |
349 | 354 | ||