diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-01-17 10:30:37 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-02-20 10:11:06 +1300 |
commit | 1fb1f6bc0dad00d1eb2d1e2aff34e9d3b2714421 (patch) | |
tree | 93ec165ad1423688666d46399c1890a17cb99b15 /source4/param/share_classic.c | |
parent | bce62e600085270f26053882c5a4e35f5fe4fb5e (diff) | |
download | samba-1fb1f6bc0dad00d1eb2d1e2aff34e9d3b2714421.tar.gz |
lib/param: handle non-constant strings properly by passing in a memory context
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Change-Id: Ic6bb1c709defd2b0f35fc7b877da0badca385776
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
Diffstat (limited to 'source4/param/share_classic.c')
-rw-r--r-- | source4/param/share_classic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/share_classic.c b/source4/param/share_classic.c index 74a454e5e16..67ea392824f 100644 --- a/source4/param/share_classic.c +++ b/source4/param/share_classic.c @@ -77,11 +77,11 @@ static char *sclassic_string_option(TALLOC_CTX *mem_ctx, } if (strcmp(opt_name, SHARE_PATH) == 0) { - return lpcfg_path(s, lpcfg_default_service(lp_ctx)); + return lpcfg_path(s, lpcfg_default_service(lp_ctx), mem_ctx); } if (strcmp(opt_name, SHARE_COMMENT) == 0) { - return lpcfg_comment(s, lpcfg_default_service(lp_ctx)); + return lpcfg_comment(s, lpcfg_default_service(lp_ctx), mem_ctx); } if (strcmp(opt_name, SHARE_VOLUME) == 0) { |