ecdsa_ossl: address coverity nit
authorBenjamin Kaduk <kaduk@mit.edu>
Mon, 18 Jun 2018 01:00:02 +0000 (20:00 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 22 Jun 2018 16:54:30 +0000 (11:54 -0500)
commit5295b99b5606e3502b9af06a2cf54acf2187a34a
tree8e326ac6a6e4d125300353c1234861861a1263c9
parent09fb65d5e413b7b87bf26f01ec441b44a03d4ee2
ecdsa_ossl: address coverity nit

BN_CTX_end() does not handle NULL input, so we must manually check
before calling from the cleanup handler.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6502)
crypto/ec/ecdsa_ossl.c