Commit 4e78074b authored by Richard Levitte's avatar Richard Levitte
Browse files

cert_sk isn't always allocated, so freeing it may cause a crash.

PR: 481
parent b637670f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1641,6 +1641,7 @@ err:
	BIO_free_all(out);
	BIO_free_all(in);

	if (cert_sk)
		sk_X509_pop_free(cert_sk,X509_free);

	if (ret) ERR_print_errors(bio_err);