mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
vfs: Set errno in an error return
Don't leak an unrelated errno Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2b6e557ec4
commit
40b7c862b4
@ -1721,6 +1721,7 @@ static int fruit_open_rsrc(vfs_handle_struct *handle,
|
||||
|
||||
default:
|
||||
DBG_ERR("Unexpected rsrc config [%d]\n", config->rsrc);
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user