aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-10-31 09:40:08 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-09 16:38:36 +0100
commit7498167e6c9fea35f55a03136b3023655b9e0d2c (patch)
treeedfa1d1148f03e8ce0f7787d1a18458150627fe6
parentf1b13559750f64077da3d30f8e5647ca735d8e64 (diff)
downloadlibssh-7498167e6c9fea35f55a03136b3023655b9e0d2c.tar.gz
libssh-7498167e6c9fea35f55a03136b3023655b9e0d2c.tar.xz
libssh-7498167e6c9fea35f55a03136b3023655b9e0d2c.zip
pki_container_openssh: Use SSH_STRING_FREE
Fixes T183 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com> (cherry picked from commit f422fb02f678992a8702f371fb46a07b6410f390)
-rw-r--r--src/pki_container_openssh.c2
1 files changed, 1 insertions, 1 deletions
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;
}