1
0
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:
Volker Lendecke 2021-01-12 11:22:57 +01:00
parent 5ef25729bd
commit 8d5fb1ad14

View File

@ -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;
}