Ticket #3581: various SFTP fixes.

(sftpfs_cb_open_connection): initialise sftpfs_super_data_t::socket_handle correctrly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-01-07 09:33:21 +03:00
parent 9dcf03342a
commit 0376fb50e0

View File

@ -104,6 +104,7 @@ sftpfs_cb_open_connection (struct vfs_s_super *super,
}
sftpfs_super_data = g_new0 (sftpfs_super_data_t, 1);
sftpfs_super_data->socket_handle = -1;
sftpfs_super_data->original_connection_info = vfs_path_element_clone (vpath_element);
super->data = sftpfs_super_data;
super->path_element = vfs_path_element_clone (vpath_element);