diff options
author | Tim Potter <tpot@samba.org> | 2001-06-26 06:11:40 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-06-26 06:11:40 +0000 |
commit | 89eaaafe7d266788609fab6951fd912c441b3a26 (patch) | |
tree | 060f2a9ca59b913fecb979b05c5f29e201e415a7 /source/libsmb/clirap.c | |
parent | 52143c08536a5f5d888b78b4769c06f7a0a2992b (diff) | |
download | samba-89eaaafe7d266788609fab6951fd912c441b3a26.tar.gz samba-89eaaafe7d266788609fab6951fd912c441b3a26.tar.xz samba-89eaaafe7d266788609fab6951fd912c441b3a26.zip |
Fixed bug introduced by changeover of security descriptor code from
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.
Diffstat (limited to 'source/libsmb/clirap.c')
0 files changed, 0 insertions, 0 deletions