diff options
author | Michael Adam <obnox@samba.org> | 2008-04-16 22:42:49 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-16 22:44:04 +0200 |
commit | 4a9e0e6034a17604c50ed5483f1d4c2067cab5bd (patch) | |
tree | 58e89b8999db990d51b32a0ac53b66e9eca757d4 /source3/lib/smbconf | |
parent | 25f9ca7b05881a4269d546929105f7f924f0c1ec (diff) | |
download | samba-4a9e0e6034a17604c50ed5483f1d4c2067cab5bd.tar.gz samba-4a9e0e6034a17604c50ed5483f1d4c2067cab5bd.tar.bz2 samba-4a9e0e6034a17604c50ed5483f1d4c2067cab5bd.zip |
libsmbconf: fix segfault in listing share names / config.
Discovered by Günther while giving a talk. - Sorry Günther!
Michael
(This used to be commit 518f4d4e6662138a2e71acc2296acedefc7c739a)
Diffstat (limited to 'source3/lib/smbconf')
-rw-r--r-- | source3/lib/smbconf/smbconf_reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c index 39b05f7016..930999cc3f 100644 --- a/source3/lib/smbconf/smbconf_reg.c +++ b/source3/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; } |