From: Alan T. DeKok Date: Mon, 30 Jul 2012 22:49:23 +0000 (-0700) Subject: Next update time may be NULL X-Git-Tag: release_3_0_0_beta0~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f71201fb8386509a457104f77e4165342451496;p=thirdparty%2Ffreeradius-server.git Next update time may be NULL --- diff --git a/src/main/tls.c b/src/main/tls.c index aad1e9aa306..beb48216b7f 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -1193,9 +1193,11 @@ static int ocsp_check(X509_STORE *store, X509 *issuer_cert, X509 *client_cert, BIO_puts(bio_out, "\tThis Update: "); ASN1_GENERALIZEDTIME_print(bio_out, thisupd); BIO_puts(bio_out, "\n"); - BIO_puts(bio_out, "\tNext Update: "); - ASN1_GENERALIZEDTIME_print(bio_out, nextupd); - BIO_puts(bio_out, "\n"); + if (nextupd) { + BIO_puts(bio_out, "\tNext Update: "); + ASN1_GENERALIZEDTIME_print(bio_out, nextupd); + BIO_puts(bio_out, "\n"); + } switch (status) { case V_OCSP_CERTSTATUS_GOOD: