summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/certificate.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/certificate.cc b/src/certificate.cc
index fd767fa7..7448dd59 100644
--- a/src/certificate.cc
+++ b/src/certificate.cc
@@ -142,11 +142,12 @@ Certificate::read_string (string cert)
BIO_free (bio);
+ /* See if there are any non-blank lines after the certificate that we read */
line.clear ();
- if (s.good ()) {
+ while (s.good() && line.empty()) {
getline (s, line);
}
- return !line.empty();
+ return (s.good() && !line.empty());
}
/** Destructor */