Avoid SEGV when giving X509_sign a NULL private key.
authorPauli <paul.dale@oracle.com>
Thu, 6 Sep 2018 23:04:59 +0000 (09:04 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 6 Sep 2018 23:04:59 +0000 (09:04 +1000)
commita6465b3f8557f69e84e7d8e097f9c45ba4479dd6
tree2e8ddd2da67fc990db19291a4c2673709e3c1123
parent82eba370daeb6d80b01b521d9e2963451487f0cb
Avoid SEGV when giving X509_sign a NULL private key.

Put a NULL check back in to avoid dereferencing the NULL pointer.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7146)
crypto/evp/pmeth_lib.c