parsing error caused segfault in destroy()

This commit is contained in:
Andreas Steffen
2009-09-13 20:56:12 +02:00
parent b6f28c2870
commit 4c51c6be01
+1 -1
View File
@@ -1463,9 +1463,9 @@ x509_cert_t *x509_cert_load(certificate_type_t type, va_list args)
private_x509_cert_t *cert = create_empty();
cert->encoding = chunk_clone(blob);
cert->parsed = TRUE;
if (parse_certificate(cert))
{
cert->parsed = TRUE;
return &cert->public;
}
destroy(cert);