]> git.ipfire.org Git - thirdparty/openssl.git/commit
apps/s_server.c: Add check for OPENSSL_strdup
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Fri, 17 Jun 2022 09:44:24 +0000 (17:44 +0800)
committerPauli <pauli@openssl.org>
Wed, 22 Jun 2022 06:56:40 +0000 (16:56 +1000)
commita6a2dd9f60b3f3e93de1337ee84f9e8f33bc86a8
tree8bab1cee66ce0e6dcad5bb88d0f41ee1d9e49d3a
parente163969d3580e5b797fcebde0d3000302912ef18
apps/s_server.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: Todd Short <todd.short@me.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18595)
apps/s_server.c