Null pointer used. Address coverity report of null pointer being dereferenced.
Null pointer used.
Address coverity report of null pointer being dereferenced.

Reviewed-by: Rich Salz <c04971a99e5a9ee80eaab4b1deb37e845b0bd697@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4381)

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl