Ticket #3176: sftpfs: fix segfault when trying to view a file.
commitcd44dc59386634298b9066c72bef0bca71afa1c4
authorVahur Sinijärv <vahursi@gmail.com>
Fri, 28 Feb 2014 05:29:42 +0000 (28 09:29 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Fri, 28 Feb 2014 05:37:26 +0000 (28 09:37 +0400)
tree30aee27e3bcd710a524bc6e12cea56a7c9afaa0a
parent9bbc51098ed53c6e4b83b8920e81463cc1521e29
Ticket #3176: sftpfs: fix segfault when trying to view a file.

Segfault was caused by using data from already free()-d memory
in /src/vfs/sftpfs/file.c. sftpfs_lseek() accessed a memory block,
which was previously deallocated by sftpfs_reopen().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/vfs/sftpfs/file.c