do not list empty certuribase strings 4.2.3
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 24 May 2008 05:47:37 +0000 (05:47 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 24 May 2008 05:47:37 +0000 (05:47 -0000)
src/charon/plugins/stroke/stroke_ca.c

index 11de241..897365e 100644 (file)
@@ -411,7 +411,10 @@ static void list(private_stroke_ca_t *this, stroke_msg_t *msg, FILE *out)
                }
                list_uris(section->crl, "  crluris:     ", out);
                list_uris(section->ocsp, "  ocspuris:    ", out);
-               fprintf(out, "  certuribase: '%s'\n", section->certuribase);
+               if (section->certuribase)
+               {
+                       fprintf(out, "  certuribase: '%s'\n", section->certuribase);
+               }
        }
        enumerator->destroy(enumerator);
        this->mutex->unlock(this->mutex);