From 0376fb50e01498a59fc2c5d8113ddab1113fd2e7 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 7 Jan 2016 09:33:21 +0300 Subject: [PATCH] Ticket #3581: various SFTP fixes. (sftpfs_cb_open_connection): initialise sftpfs_super_data_t::socket_handle correctrly. Signed-off-by: Andrew Borodin --- src/vfs/sftpfs/vfs_subclass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vfs/sftpfs/vfs_subclass.c b/src/vfs/sftpfs/vfs_subclass.c index 8ddff7428..b7bb39c56 100644 --- a/src/vfs/sftpfs/vfs_subclass.c +++ b/src/vfs/sftpfs/vfs_subclass.c @@ -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); -- 2.11.4.GIT