CVS update: samba/source/passdb

abartlet at samba.org abartlet at samba.org
Thu Sep 27 19:13:26 EST 2001


Date:	Thu Sep 27 02:13:26 2001
Author:	abartlet

Update of /data/cvs/samba/source/passdb
In directory va:/tmp/cvs-serv14717/passdb

Modified Files:
	passdb.c 
Log Message:
Fix memory leak in get_sampwd_entries(), reindent for clarity.
 - call pdb_reset_sam() after each getent call.

Fix bug in get_group_alias_entries(), were if num_entries was zero this caused
talloc() to return NULL, failing a test below with NT_STATUS_NO_MEMORY.

Fix pdb_reset_sam() to correctly initalise the sam structure.

Move default value code into a single place, likewise for sam freeing code.
 - should make things easier if we decide to malloc other strings, or get more
 non-zero default values.

Finally, add a function in init a sam struct from a getpwnam() return.

Andrew Bartlett



Revisions:
passdb.c		1.100 => 1.101
	http://www.samba.org/cgi-bin/cvsweb/samba/source/passdb/passdb.c?r1=1.100&r2=1.101




More information about the samba-cvs mailing list