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:19:24 +0000 (09:19 +0000)
commita01087027bd0c5ec053d4eabd972bd942bfcd92f
tree15dba83fb5d58c761609d77871fd050dde21ddd1
parent8c5a7b33c6269c3bd6bc0df6b4c22e4fba03b485
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>
crypto/evp/digest.c