1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

vfs_fruit: Fix CID 1471764 Dereference null return value

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
This commit is contained in:
Volker Lendecke 2021-01-12 11:24:38 +01:00
parent 8d5fb1ad14
commit acca9ec4b6

View File

@ -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) {