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:
parent
8d5fb1ad14
commit
acca9ec4b6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user