From: Alan T. DeKok Date: Mon, 30 Jul 2012 22:47:12 +0000 (-0700) Subject: Next update time may be NULL X-Git-Tag: release_2_2_0~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30d5e93746fb22b781be2ea72ec3a3146d4c0821;p=thirdparty%2Ffreeradius-server.git Next update time may be NULL --- diff --git a/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c b/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c index 309ca030fe2..88d71ad2a65 100644 --- a/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c +++ b/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c @@ -434,9 +434,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: