]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/x509/by_store.c: Add check for OPENSSL_strdup
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Fri, 17 Jun 2022 09:07:15 +0000 (17:07 +0800)
committerPauli <pauli@openssl.org>
Wed, 22 Jun 2022 06:55:19 +0000 (16:55 +1000)
commite163969d3580e5b797fcebde0d3000302912ef18
tree01b99e9787bbec885d6a565780044e8614d730c0
parent9f40251da8a6bd66c36a33fe41e52c87ec14ca64
crypto/x509/by_store.c: Add check for OPENSSL_strdup

As the potential failure of the OPENSSL_strdup(),
it should be better to check the return value and
return error if fails.

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/18593)
crypto/x509/by_store.c