summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r--src/gmrequest.c7
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
344iDate certExpirationDate_GmRequest(const iGmRequest *d) { 344iDate 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