mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
@@ -524,6 +524,7 @@ int ssh_pki_export_privkey_file(const ssh_key privkey,
|
|||||||
}
|
}
|
||||||
|
|
||||||
rc = fwrite(ssh_string_data(blob), ssh_string_len(blob), 1, fp);
|
rc = fwrite(ssh_string_data(blob), ssh_string_len(blob), 1, fp);
|
||||||
|
ssh_string_free(blob);
|
||||||
if (rc != 1 || ferror(fp)) {
|
if (rc != 1 || ferror(fp)) {
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
unlink(filename);
|
unlink(filename);
|
||||||
|
Reference in New Issue
Block a user