diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-08-28 19:03:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:03:03 -0500 |
commit | 3e7203d0b34a031e10aeaaf04f246a1de8376ab4 (patch) | |
tree | cb3b6303112f2b945650b2a778d2eb32cbba3e59 /source4/torture/rpc/mgmt.c | |
parent | 53d10b44faa77293e380bd1cda6168acc05a5493 (diff) | |
download | samba-3e7203d0b34a031e10aeaaf04f246a1de8376ab4.tar.gz samba-3e7203d0b34a031e10aeaaf04f246a1de8376ab4.tar.bz2 samba-3e7203d0b34a031e10aeaaf04f246a1de8376ab4.zip |
r24755: Use common code for finding the RPC binding in the torture tests.
(This used to be commit e3310e773924ddd2129e8ca1a86e23d0f713c19c)
Diffstat (limited to 'source4/torture/rpc/mgmt.c')
-rw-r--r-- | source4/torture/rpc/mgmt.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/torture/rpc/mgmt.c b/source4/torture/rpc/mgmt.c index ec3e390afa..6d0c3d56c9 100644 --- a/source4/torture/rpc/mgmt.c +++ b/source4/torture/rpc/mgmt.c @@ -196,21 +196,14 @@ BOOL torture_rpc_mgmt(struct torture_context *torture) struct dcerpc_pipe *p; TALLOC_CTX *mem_ctx, *loop_ctx; BOOL ret = True; - const char *binding = torture_setting_string(torture, "binding", NULL); const struct ndr_interface_list *l; struct dcerpc_binding *b; mem_ctx = talloc_init("torture_rpc_mgmt"); - if (!binding) { - 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; } |