diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-30 19:05:06 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-13 11:54:17 +0100 |
commit | 451d7039fe3f8c2f2e60258a765c55f3d1fc39a4 (patch) | |
tree | e5ad0c33205db0cf74f724fe237e8c8968781585 /source4/torture/rpc/lsa_lookup.c | |
parent | 41eaba77361c984f6d57143a5e1c7c25663c0d84 (diff) | |
download | samba-451d7039fe3f8c2f2e60258a765c55f3d1fc39a4.tar.gz |
s4:torture/rpc: make use of dcerpc_binding_[g|s]et_transport()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/torture/rpc/lsa_lookup.c')
-rw-r--r-- | source4/torture/rpc/lsa_lookup.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/torture/rpc/lsa_lookup.c b/source4/torture/rpc/lsa_lookup.c index 587ab630bd7..59decda1710 100644 --- a/source4/torture/rpc/lsa_lookup.c +++ b/source4/torture/rpc/lsa_lookup.c @@ -221,15 +221,16 @@ bool torture_rpc_lsa_lookup(struct torture_context *torture) struct dom_sid *trusted_sid = NULL; struct dom_sid *sids[NUM_SIDS]; struct dcerpc_binding_handle *b; + enum dcerpc_transport_t transport; status = torture_rpc_connection(torture, &p, &ndr_table_lsarpc); if (!NT_STATUS_IS_OK(status)) { torture_fail(torture, "unable to connect to table"); } b = p->binding_handle; + transport = dcerpc_binding_get_transport(p->binding); - if (p->binding->transport != NCACN_NP && - p->binding->transport != NCALRPC) { + if (transport != NCACN_NP && transport != NCALRPC) { torture_comment(torture, "torture_rpc_lsa_lookup is only available " "over NCACN_NP or NCALRPC"); @@ -343,9 +344,9 @@ static bool test_LookupSidsReply(struct torture_context *tctx, const char *dom_sid = "S-1-5-21-1111111111-2222222222-3333333333"; const char *dom_admin_sid; struct dcerpc_binding_handle *b = p->binding_handle; + enum dcerpc_transport_t transport = dcerpc_binding_get_transport(p->binding); - if (p->binding->transport != NCACN_NP && - p->binding->transport != NCALRPC) { + if (transport != NCACN_NP && transport != NCALRPC) { torture_comment(tctx, "test_LookupSidsReply is only available " "over NCACN_NP or NCALRPC"); |