test/evp_extra_test.c: fix null pointer dereference
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 9 Sep 2018 22:20:12 +0000 (00:20 +0200)
committerMatt Caswell <matt@openssl.org>
Mon, 10 Sep 2018 10:11:43 +0000 (11:11 +0100)
commit35db366cf453427c855bea8ca097618a8a8d7ff0
tree4e32263a177677cfa16a51a3a181993c55e0a6cf
parent427e91d928ce7a1c583e4bba761cb17a85ac95b4
test/evp_extra_test.c: fix null pointer dereference

It's actually not a real issue but caused by the absence of the default case
which does not occur in reality but which makes coverity see a code path where
pkey remains unassigned.

Reported by Coverity Scan (CID 1423323)
[extended tests]

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7158)
test/evp_extra_test.c