mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
742609a21d
malloc() to talloc(). Previously, creating an ACL containing zero ACEs
would return a non-NULL pointer to zero bytes of memory. The talloc() code
would return a NULL pointer making the ACL a NULL ACL instead of an empty
one. The difference is a NULL ACL allows all access and an empty ACL
denies all access.
We solve this by calling talloc(ctx, sizeof(SEC_ACE) * num_aces + 1).
Heh.
(This used to be commit
|
||
---|---|---|
.. | ||
.cvsignore | ||
parse_creds.c | ||
parse_dfs.c | ||
parse_lsa.c | ||
parse_misc.c | ||
parse_net.c | ||
parse_prs.c | ||
parse_reg.c | ||
parse_rpc.c | ||
parse_samr.c | ||
parse_sec.c | ||
parse_spoolss.c | ||
parse_srv.c | ||
parse_wks.c |