From f422fb02f678992a8702f371fb46a07b6410f390 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 31 Oct 2019 09:40:08 +0100 Subject: [PATCH] pki_container_openssh: Use SSH_STRING_FREE Fixes T183 Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- src/pki_container_openssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pki_container_openssh.c b/src/pki_container_openssh.c index 705cd19a..f7ec0f4c 100644 --- a/src/pki_container_openssh.c +++ b/src/pki_container_openssh.c @@ -701,7 +701,7 @@ ssh_string ssh_pki_openssh_privkey_export(const ssh_key privkey, str_len = ssh_buffer_get_len(buffer); len = ssh_buffer_get_data(buffer, ssh_string_data(str), str_len); if (str_len != len) { - ssh_string_free(str); + SSH_STRING_FREE(str); str = NULL; }