From bdbc66e0b0d60563b5a5ff20f76ccff026ceab8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Fri, 24 Apr 2015 15:56:31 -0400 Subject: [PATCH] crypto: fix certificate chain export --- src/crypto.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto.cpp b/src/crypto.cpp index 73a118a9..fe2072f9 100644 --- a/src/crypto.cpp +++ b/src/crypto.cpp @@ -450,7 +450,8 @@ std::string Certificate::toString() const { std::ostringstream ss; - while (const Certificate* crt = this) { + const Certificate* crt = this; + while (crt) { std::string str; size_t buf_sz = 8192; str.resize(buf_sz);