1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s3:rpcclient: make use of dcerpc_binding_handle_get_transport()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-09-19 09:20:03 +02:00 committed by Ralph Boehme
parent 504906e60f
commit e5c09e041d

View File

@ -396,13 +396,17 @@ static NTSTATUS cmd_set_transport(struct dcerpc_binding *b)
struct cmd_set *tmp_set;
for (tmp_set = tmp->cmd_set; tmp_set->name; tmp_set++) {
struct dcerpc_binding_handle *tmp_b = NULL;
enum dcerpc_transport_t tmp_t;
if (tmp_set->rpc_pipe == NULL) {
continue;
}
if (tmp_set->rpc_pipe->transport->transport != t) {
tmp_b = tmp_set->rpc_pipe->binding_handle;
tmp_t = dcerpc_binding_handle_get_transport(tmp_b);
if (tmp_t != t) {
TALLOC_FREE(tmp_set->rpc_pipe);
tmp_set->rpc_pipe = NULL;
}
}
}