Commit 69a03c17 authored by Bodo Möller's avatar Bodo Möller
Browse files

don't dump core

parent 4327aae8
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -770,16 +770,15 @@ loop:

	if (newreq || x509)
		{
#ifndef NO_DSA
		if (pkey->type == EVP_PKEY_DSA)
			digest=EVP_dss1();
#endif

		if (pkey == NULL)
			{
			BIO_printf(bio_err,"you need to specify a private key\n");
			goto end;
			}
#ifndef NO_DSA
		if (pkey->type == EVP_PKEY_DSA)
			digest=EVP_dss1();
#endif
		if (req == NULL)
			{
			req=X509_REQ_new();