1
0
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:
Andreas Schneider
2018-09-04 13:34:23 +02:00
parent f48dcb26e3
commit 4774d2b9f7

View File

@@ -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,