From 1796c8536a6c6d1d06c90bfcb1c268c83d171bb1 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 12 Apr 2011 12:31:50 +0400 Subject: [PATCH] Ticket #2535: segfault in FTP VFS ...because of uninitialized pointer usage. The bug was introduced in 68628184b1335276998ee0fecb3b995b64c74723 commit. Signed-off-by: Andrew Borodin --- lib/vfs/direntry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c index 0a039ef59..3e5755bf9 100644 --- a/lib/vfs/direntry.c +++ b/lib/vfs/direntry.c @@ -1198,6 +1198,7 @@ vfs_s_open (struct vfs_class *me, const char *file, int flags, mode_t mode) fh->handle = -1; fh->changed = was_changed; fh->linear = 0; + fh->data = NULL; if (IS_LINEAR (flags)) {