From d1e1f8224f578c9b92e81db6b93f4fb7af135138 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 8 Aug 2012 11:23:12 +0200 Subject: s3-vfs: Fix calls of lp_parm_talloc_string Signed-off-by: Christian Ambach --- source3/modules/vfs_tsmsm.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c index 8b138d385c..fca43c2435 100644 --- a/source3/modules/vfs_tsmsm.c +++ b/source3/modules/vfs_tsmsm.c @@ -114,16 +114,19 @@ static int tsmsm_connect(struct vfs_handle_struct *handle, tsmname = (handle->param ? handle->param : "tsmsm"); /* Get 'hsm script' and 'dmapi attribute' parameters to tsmd context */ - tsmd->hsmscript = lp_parm_talloc_string(SNUM(handle->conn), tsmname, - "hsm script", NULL); + tsmd->hsmscript = lp_parm_talloc_string( + tsmd, SNUM(handle->conn), tsmname, + "hsm script", NULL); talloc_steal(tsmd, tsmd->hsmscript); - tsmd->attrib_name = lp_parm_talloc_string(SNUM(handle->conn), tsmname, - "dmapi attribute", DM_ATTRIB_OBJECT); + tsmd->attrib_name = lp_parm_talloc_string( + tsmd, SNUM(handle->conn), tsmname, + "dmapi attribute", DM_ATTRIB_OBJECT); talloc_steal(tsmd, tsmd->attrib_name); - tsmd->attrib_value = lp_parm_talloc_string(SNUM(handle->conn), "tsmsm", - "dmapi value", NULL); + tsmd->attrib_value = lp_parm_talloc_string( + tsmd, SNUM(handle->conn), tsmname, + "dmapi value", NULL); talloc_steal(tsmd, tsmd->attrib_value); /* retrieve 'online ratio'. In case of error default to FILE_IS_ONLINE_RATIO */ -- cgit