crypto/http/http_client.c: Add the check for OPENSSL_strdup
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 22 Jun 2022 08:41:12 +0000 (16:41 +0800)
committerTomas Mraz <tomas@openssl.org>
Thu, 23 Jun 2022 10:35:09 +0000 (12:35 +0200)
commit816d6e578ccc4d8ae41de77e3069762d03079d18
treee2efc34938d54d3afe69c5eb963a2cfbb216e136
parent4d8a88c134df634ba610ff8db1eb8478ac5fd345
crypto/http/http_client.c: Add the 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: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18624)
crypto/http/http_client.c