[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-944-g518f4d4

Michael Adam obnox at samba.org
Wed Apr 16 20:46:10 GMT 2008


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 <obnox at samba.org>
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


More information about the samba-cvs mailing list