summaryrefslogtreecommitdiff
path: root/src/certificate.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-11-15 20:53:25 +0000
committerCarl Hetherington <cth@carlh.net>2015-11-15 20:53:25 +0000
commitcb18463291c502979d661b75e9e446f6c9bb0e3c (patch)
tree99f2b5b3bef02dfcc053905f9193f98028eab2bc /src/certificate.cc
parentdc31f6d229c0b0c3d953022594c8bb713ca5d72e (diff)
Support trusted device lists in KDMs.
Diffstat (limited to 'src/certificate.cc')
-rw-r--r--src/certificate.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/certificate.cc b/src/certificate.cc
index 3eb6e76b..79b71716 100644
--- a/src/certificate.cc
+++ b/src/certificate.cc
@@ -66,7 +66,9 @@ Certificate::Certificate (Certificate const & other)
: _certificate (0)
, _public_key (0)
{
- read_string (other.certificate (true));
+ if (other._certificate) {
+ read_string (other.certificate (true));
+ }
}
/** Read a certificate from a string.