Next update time may be NULL
authorAlan T. DeKok <aland@freeradius.org>
Mon, 30 Jul 2012 22:49:23 +0000 (15:49 -0700)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 30 Jul 2012 22:49:23 +0000 (15:49 -0700)
src/main/tls.c

index aad1e9a..beb4821 100644 (file)
@@ -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: