1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-26 01:03:15 +03:00

sftp: Fix bug in sftp_mkdir not returning on error.

resolves: #84
This commit is contained in:
Andreas Schneider
2012-07-17 18:11:16 +02:00
parent 43e3a8e497
commit a92c97b2e1

View File

@@ -2207,6 +2207,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);