Fix Coverity 1503314 unchecked return value
Fix Coverity 1503314 unchecked return value

Reviewed-by: David von Oheimb <fbbca6c63636e78e7034aaf1b4aa3a9736383192@siemens.com>
Reviewed-by: Tomas Mraz <2bc6038c3dfca09b2da23c8b6da8ba884dc2dcc2@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18013)

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