Fix EVP_DigestInit_ex with NULL digest
authorMatt Caswell <matt@openssl.org>
Wed, 11 Mar 2015 15:41:52 +0000 (15:41 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2015 09:32:22 +0000 (09:32 +0000)
commit0c8f4229995bbb51bd29c314e2d71d7edce229de
tree5c69defc16a854d3b7f2e6e3b4777e0a181652d3
parentcc27bec2b40ca6741125cbeef6a214dfbe1f85f9
Fix EVP_DigestInit_ex with NULL digest

Calling EVP_DigestInit_ex which has already had the digest set up for it
should be possible. You are supposed to be able to pass NULL for the type.
However currently this seg faults.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit a01087027bd0c5ec053d4eabd972bd942bfcd92f)
crypto/evp/digest.c