summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-08-08 11:23:12 +0200
committerChristian Ambach <ambi@samba.org>2012-08-17 18:25:53 +0200
commitd1e1f8224f578c9b92e81db6b93f4fb7af135138 (patch)
tree4df6f65169d9882c5a25082e7b4db0cd610a45c5
parent3755a418ccee85d633aaac5047c007893ce63c73 (diff)
downloadsamba-d1e1f8224f578c9b92e81db6b93f4fb7af135138.tar.gz
samba-d1e1f8224f578c9b92e81db6b93f4fb7af135138.tar.bz2
samba-d1e1f8224f578c9b92e81db6b93f4fb7af135138.zip
s3-vfs: Fix calls of lp_parm_talloc_string
Signed-off-by: Christian Ambach <ambi@samba.org>
-rw-r--r--source3/modules/vfs_tsmsm.c15
1 files changed, 9 insertions, 6 deletions
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 */