summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldid.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ldid.cpp b/ldid.cpp
index f569dc0..4ad9b2f 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1454,8 +1454,13 @@ class Stuff {
{
_assert(value_ != NULL);
_assert(PKCS12_parse(value_, "", &key_, &cert_, &ca_) != 0);
+
_assert(key_ != NULL);
_assert(cert_ != NULL);
+
+ if (ca_ == NULL)
+ ca_ = sk_X509_new_null();
+ _assert(ca_ != NULL);
}
Stuff(const std::string &data) :