Fix NULL pointer dereference in the ex_data code
authorMatt Caswell <matt@openssl.org>
Tue, 28 May 2019 10:28:16 +0000 (11:28 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Jun 2019 09:22:21 +0000 (10:22 +0100)
commitf2d20f0bb8b79f37f785ca9eff5252188991dd8d
treefc118724752746783631a0bcea13f55dc8582b05
parent57ca171a131e6d55b4c4f6decefedeaa509db702
Fix NULL pointer dereference in the ex_data code

In some circumstances the global data held in the "global" variable can
be NULL, so we should error out in the circumstance instead of crashing.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/9035)
crypto/ex_data.c