summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-04 12:14:37 +0100
committerGünther Deschner <gd@samba.org>2014-02-13 11:54:17 +0100
commit41eaba77361c984f6d57143a5e1c7c25663c0d84 (patch)
tree9e189609a68dc03c27344792c49e3d289449fca8 /source4/torture/smbtorture.c
parent71096883e1614e718a94dfb44ed71e70529d0af1 (diff)
downloadsamba-41eaba77361c984f6d57143a5e1c7c25663c0d84.tar.gz
s4:torture: use dcerpc_binding_get_string_option("host") in smbtorture.c
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/torture/smbtorture.c')
-rw-r--r--source4/torture/smbtorture.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index fd5315d20ce..78f7dade26e 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -163,9 +163,12 @@ bool torture_parse_target(struct loadparm_context *lp_ctx, const char *target)
d_printf("Invalid option: %s is not a valid torture target (share or binding string)\n\n", target);
return false;
}
- if (binding_struct->host != NULL) {
- lpcfg_set_cmdline(lp_ctx, "torture:host", binding_struct->host);
+
+ host = dcerpc_binding_get_string_option(binding_struct, "host");
+ if (host != NULL) {
+ lpcfg_set_cmdline(lp_ctx, "torture:host", host);
}
+
if (lpcfg_parm_string(lp_ctx, NULL, "torture", "share") == NULL)
lpcfg_set_cmdline(lp_ctx, "torture:share", "IPC$");
lpcfg_set_cmdline(lp_ctx, "torture:binding", target);