From 3e7203d0b34a031e10aeaaf04f246a1de8376ab4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 28 Aug 2007 19:03:08 +0000 Subject: r24755: Use common code for finding the RPC binding in the torture tests. (This used to be commit e3310e773924ddd2129e8ca1a86e23d0f713c19c) --- source4/torture/rpc/scanner.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source4/torture/rpc/scanner.c') diff --git a/source4/torture/rpc/scanner.c b/source4/torture/rpc/scanner.c index da4fc84f6f..b2dd99fd66 100644 --- a/source4/torture/rpc/scanner.c +++ b/source4/torture/rpc/scanner.c @@ -100,21 +100,13 @@ BOOL torture_rpc_scanner(struct torture_context *torture) TALLOC_CTX *mem_ctx, *loop_ctx; BOOL ret = True; const struct ndr_interface_list *l; - const char *binding = torture_setting_string(torture, "binding", NULL); struct dcerpc_binding *b; mem_ctx = talloc_init("torture_rpc_scanner"); - if (!binding) { - talloc_free(mem_ctx); - printf("You must supply a ncacn binding string\n"); - return False; - } - - status = dcerpc_parse_binding(mem_ctx, binding, &b); + status = torture_rpc_binding(torture, &b); if (!NT_STATUS_IS_OK(status)) { talloc_free(mem_ctx); - printf("Failed to parse binding '%s'\n", binding); return False; } -- cgit