diff options
author | CoprDistGit <infra@openeuler.org> | 2024-07-03 02:42:38 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-07-03 02:42:38 +0000 |
commit | 3c362eae690284f325824e38431881825e32ffdd (patch) | |
tree | d2d0e11b92bf88d35c270559d268845d391a4703 /fix-memory-leak-in-kex-exchange.patch | |
parent | 62f0a34c39a6846b6a86f2bbc7fb8c319bd46d94 (diff) |
automatic import of openssh
Diffstat (limited to 'fix-memory-leak-in-kex-exchange.patch')
-rw-r--r-- | fix-memory-leak-in-kex-exchange.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fix-memory-leak-in-kex-exchange.patch b/fix-memory-leak-in-kex-exchange.patch new file mode 100644 index 0000000..c742434 --- /dev/null +++ b/fix-memory-leak-in-kex-exchange.patch @@ -0,0 +1,25 @@ +From 7a7862590cbe1f7a9d8957fdc78f324a1bdfc520 Mon Sep 17 00:00:00 2001 +From: songjuntao <songjuntao@kylinos.cn> +Date: Fri, 2 Feb 2024 15:55:13 +0800 +Subject: [PATCH] fix memory leak in kex exchange function + +Signed-off-by: songjuntao <songjuntao@kylinos.cn> +--- + sshconnect2.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sshconnect2.c b/sshconnect2.c +index b6e2197..d3ceee4 100644 +--- a/sshconnect2.c ++++ b/sshconnect2.c +@@ -385,6 +385,7 @@ ssh_kex2(struct ssh *ssh, char *host, struct sockaddr *hostaddr, u_short port, + free(prop_kex); + free(prop_enc); + free(prop_hostkey); ++ free(s); + } + + /* +-- +2.33.0 + |