mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
pki_container_openssh: Use SSH_STRING_FREE
Fixes T183 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -701,7 +701,7 @@ ssh_string ssh_pki_openssh_privkey_export(const ssh_key privkey,
|
|||||||
str_len = ssh_buffer_get_len(buffer);
|
str_len = ssh_buffer_get_len(buffer);
|
||||||
len = ssh_buffer_get_data(buffer, ssh_string_data(str), str_len);
|
len = ssh_buffer_get_data(buffer, ssh_string_data(str), str_len);
|
||||||
if (str_len != len) {
|
if (str_len != len) {
|
||||||
ssh_string_free(str);
|
SSH_STRING_FREE(str);
|
||||||
str = NULL;
|
str = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user