mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 04:40:31 +09:00
sftp: Fix bug in sftp_mkdir not returning on error.
resolves: #84
(cherry picked from commit a92c97b2e1)
This commit is contained in:
@@ -2269,6 +2269,7 @@ int sftp_mkdir(sftp_session sftp, const char *directory, mode_t mode) {
|
||||
sftp_packet_write(sftp, SSH_FXP_MKDIR, buffer) < 0) {
|
||||
ssh_buffer_free(buffer);
|
||||
ssh_string_free(path);
|
||||
return -1;
|
||||
}
|
||||
ssh_buffer_free(buffer);
|
||||
ssh_string_free(path);
|
||||
|
||||
Reference in New Issue
Block a user