test/crltest.c: Add check for glue2bio
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 17 Feb 2022 09:47:00 +0000 (17:47 +0800)
committerPauli <pauli@openssl.org>
Thu, 24 Feb 2022 00:24:51 +0000 (11:24 +1100)
commit18cb1740cc0fd11940836fa2fcaf6d3634c00e90
tree07a02a104b8d8bf3ce1cdca187adb0e87a66f462
parentcf21d1c62dcd92be624ea0fb8a86d91e4fbeed93
test/crltest.c: Add check for glue2bio

As the glue2bio() could return NULL pointer if fails,
it should be better to check the return value in order
to avoid the use of NULL pointer.

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17718)
test/crltest.c