mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
vfs_fruit: Fix CID 1471760 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
5ef25729bd
commit
8d5fb1ad14
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user