summaryrefslogtreecommitdiff
path: root/testsuite/libsmbclient/src
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-27 09:13:26 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-27 09:13:26 +0000
commit2a9cd3b79af12ad32aafe204b2a964348385eba7 (patch)
tree03f87d6dd8c163cd75688aeabfdca3bf37f54258 /testsuite/libsmbclient/src
parent0d76ac63315545c530b251bd4c27c7ac53d1c632 (diff)
downloadsamba-2a9cd3b79af12ad32aafe204b2a964348385eba7.tar.gz
samba-2a9cd3b79af12ad32aafe204b2a964348385eba7.tar.bz2
samba-2a9cd3b79af12ad32aafe204b2a964348385eba7.zip
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 (This used to be commit a41fb44f5e90cf8734d57217e836e14f4a80bd47)
Diffstat (limited to 'testsuite/libsmbclient/src')
0 files changed, 0 insertions, 0 deletions