CVS update: samba/source/rpc_parse

Tim Potter tpot at samba.org
Tue Jun 26 16:11:40 EST 2001


Date:	Mon Jun 25 23:11:40 2001
Author:	tpot

Update of /data/cvs/samba/source/rpc_parse
In directory va:/tmp/cvs-serv9609

Modified Files:
	parse_sec.c 
Log Message:
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.


Revisions:
parse_sec.c		1.34 => 1.35
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_sec.c?r1=1.34&r2=1.35




More information about the samba-cvs mailing list