The branch, v3-2-test has been updated via 518f4d4e6662138a2e71acc2296acedefc7c739a (commit) from ce7025df2958dac284ec9e5ce47ab172c3aa2567 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log ----------------------------------------------------------------- commit 518f4d4e6662138a2e71acc2296acedefc7c739a Author: Michael Adam <[EMAIL PROTECTED]> Date: Wed Apr 16 22:42:49 2008 +0200 libsmbconf: fix segfault in listing share names / config. Discovered by Günther while giving a talk. - Sorry Günther! Michael ----------------------------------------------------------------------- Summary of changes: source/lib/smbconf/smbconf_reg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/smbconf/smbconf_reg.c b/source/lib/smbconf/smbconf_reg.c index 39b05f7..930999c 100644 --- a/source/lib/smbconf/smbconf_reg.c +++ b/source/lib/smbconf/smbconf_reg.c @@ -784,7 +784,7 @@ static WERROR smbconf_reg_get_share_names(struct smbconf_ctx *ctx, /* make sure "global" is always listed first */ if (smbconf_share_exists(ctx, GLOBAL_NAME)) { werr = smbconf_add_string_to_array(tmp_ctx, &tmp_share_names, - 1, GLOBAL_NAME); + added_count, GLOBAL_NAME); if (!W_ERROR_IS_OK(werr)) { goto done; } -- Samba Shared Repository