[openssl/openssl] 8e2552: Fix a potential memory leak in apps/s_server.c
beshoux
noreply at github.com
Wed Feb 8 14:51:27 UTC 2023
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: 8e2552b1eac4957214fed55457f64d7d5164ca37
https://github.com/openssl/openssl/commit/8e2552b1eac4957214fed55457f64d7d5164ca37
Author: besher <beshoux at outlook.fr>
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M apps/s_server.c
Log Message:
-----------
Fix a potential memory leak in apps/s_server.c
Allocate memory for a new SSL session.
If any of these steps fail,
free the key memory and the tmpsess object
before returning 0 to prevent a memory leak.
Fixes: #20110
CLA: trivial
Reviewed-by: Paul Yang <kaishen.yy at antfin.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/20213)
More information about the openssl-commits
mailing list