mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
s3:modules properly terminate enums in nfs4 acl code
same issue as with the audit modules: using a wrong parameter leads to smbd crash as lp_enum() will not terminate on last entry of the array Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Tue May 24 20:13:39 CEST 2011 on sn-devel-104
This commit is contained in:
parent
425ac2c361
commit
53829fd495
@ -398,13 +398,15 @@ static int smbacl4_get_vfs_params(
|
||||
{
|
||||
static const struct enum_list enum_smbacl4_modes[] = {
|
||||
{ e_simple, "simple" },
|
||||
{ e_special, "special" }
|
||||
{ e_special, "special" },
|
||||
{ -1 , NULL }
|
||||
};
|
||||
static const struct enum_list enum_smbacl4_acedups[] = {
|
||||
{ e_dontcare, "dontcare" },
|
||||
{ e_reject, "reject" },
|
||||
{ e_ignore, "ignore" },
|
||||
{ e_merge, "merge" },
|
||||
{ -1 , NULL }
|
||||
};
|
||||
|
||||
memset(params, 0, sizeof(smbacl4_vfs_params));
|
||||
|
Loading…
x
Reference in New Issue
Block a user