load-tester: Fix crash if private key was not loaded successfully
Fixes #417.
This commit is contained in:
@@ -342,7 +342,7 @@ METHOD(credential_set_t, create_cert_enumerator, enumerator_t*,
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
if (!trusted)
|
||||
if (!trusted && this->private)
|
||||
{
|
||||
/* peer certificate, generate on demand */
|
||||
serial = htonl(++this->serial);
|
||||
|
||||
Reference in New Issue
Block a user