diff options
Diffstat (limited to 'source4/torture/libnet/libnet_lookup.c')
-rw-r--r-- | source4/torture/libnet/libnet_lookup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/libnet/libnet_lookup.c b/source4/torture/libnet/libnet_lookup.c index eb03eb5eca..7a414b3297 100644 --- a/source4/torture/libnet/libnet_lookup.c +++ b/source4/torture/libnet/libnet_lookup.c @@ -43,9 +43,9 @@ BOOL torture_lookup(struct torture_context *torture) ctx = libnet_context_init(NULL); ctx->cred = cmdline_credentials; - lookup.in.hostname = lp_parm_string(-1, "torture", "host"); + lookup.in.hostname = torture_setting_string(torture, "host", NULL); if (lookup.in.hostname == NULL) { - bindstr = lp_parm_string(-1, "torture", "binding"); + bindstr = torture_setting_string(torture, "binding", NULL); status = dcerpc_parse_binding(mem_ctx, bindstr, &bind); if (NT_STATUS_IS_OK(status)) { lookup.in.hostname = bind->host; @@ -89,9 +89,9 @@ BOOL torture_lookup_host(struct torture_context *torture) ctx = libnet_context_init(NULL); ctx->cred = cmdline_credentials; - lookup.in.hostname = lp_parm_string(-1, "torture", "host"); + lookup.in.hostname = torture_setting_string(torture, "host", NULL); if (lookup.in.hostname == NULL) { - bindstr = lp_parm_string(-1, "torture", "binding"); + bindstr = torture_setting_string(torture, "binding", NULL); status = dcerpc_parse_binding(mem_ctx, bindstr, &bind); if (NT_STATUS_IS_OK(status)) { lookup.in.hostname = bind->host; |