mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
sftp: Fix segfault in sftp_canonicalize_path()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -3036,8 +3036,8 @@ char *sftp_canonicalize_path(sftp_session sftp, const char *path)
|
||||
|
||||
rc = ssh_buffer_unpack(msg->payload,
|
||||
"ds",
|
||||
ignored,
|
||||
cname);
|
||||
&ignored,
|
||||
&cname);
|
||||
sftp_message_free(msg);
|
||||
if (rc != SSH_OK) {
|
||||
ssh_set_error(sftp->session,
|
||||
|
||||
Reference in New Issue
Block a user