[openssl/openssl] 3ec2ba: apps/s_server.c: Add check for OPENSSL_strdup

pauli noreply at reply.github.openssl.org
Wed Jun 22 06:57:31 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 3ec2baf41dd6a414347f1ff6c7cec6a996e0afe1
      https://github.openssl.org/openssl/openssl/commit/3ec2baf41dd6a414347f1ff6c7cec6a996e0afe1
  Author: Jiasheng Jiang <jiasheng at iscas.ac.cn>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    M apps/s_server.c

  Log Message:
  -----------
  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 at iscas.ac.cn>

Reviewed-by: Todd Short <todd.short at me.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18595)

(cherry picked from commit a6a2dd9f60b3f3e93de1337ee84f9e8f33bc86a8)




More information about the openssl-commits mailing list