From: Volker Lendecke Date: Tue, 12 Jan 2021 10:24:38 +0000 (+0100) Subject: vfs_fruit: Fix CID 1471764 Dereference null return value X-Git-Tag: samba-4.14.0rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acca9ec4b606173c85809bbc0894011c0e29bab0;p=thirdparty%2Fsamba.git vfs_fruit: Fix CID 1471764 Dereference null return value Signed-off-by: Volker Lendecke Reviewed-by: Samuel Cabrero --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index afd708b62ce..b25aebfa9ac 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -1668,6 +1668,10 @@ static int fruit_close_meta(vfs_handle_struct *handle, SMB_VFS_HANDLE_GET_DATA(handle, config, struct fruit_config_data, return -1); + if (fio == NULL) { + return -1; + } + switch (config->meta) { case FRUIT_META_STREAM: if (fio->fake_fd) {