From 8d5fb1ad14dfda2722243378a5afa8af5d743b2a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 12 Jan 2021 11:22:57 +0100 Subject: [PATCH] vfs_fruit: Fix CID 1471760 Dereference null return value Signed-off-by: Volker Lendecke Reviewed-by: Samuel Cabrero --- source3/modules/vfs_fruit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index ecacaf5fc41..afd708b62ce 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -2132,7 +2132,7 @@ static ssize_t fruit_pread_meta_stream(vfs_handle_struct *handle, ssize_t nread; int ret; - if (fio->fake_fd) { + if ((fio == NULL) || fio->fake_fd) { return -1; }