mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
CID 1416477: possibly dereferencing NULL in fruit_pwrite_meta
Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
c0e4818d68
commit
808b7e2b03
@ -4328,6 +4328,11 @@ static ssize_t fruit_pwrite_meta(vfs_handle_struct *handle,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (fio == NULL) {
|
||||
DBG_ERR("Failed to fetch fsp extension");
|
||||
return -1;
|
||||
}
|
||||
|
||||
switch (fio->config->meta) {
|
||||
case FRUIT_META_STREAM:
|
||||
nwritten = fruit_pwrite_meta_stream(handle, fsp, data,
|
||||
|
Loading…
Reference in New Issue
Block a user