mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s4:librpc/rpc: call dcerpc_binding_set_abstract_syntax after bind or alter context
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
8c2aa56c70
commit
e8d59ca336
@ -1357,6 +1357,10 @@ static void dcerpc_bind_recv_handler(struct rpc_request *subreq,
|
|||||||
if (tevent_req_nterror(req, status)) {
|
if (tevent_req_nterror(req, status)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
status = dcerpc_binding_set_abstract_syntax(b, &state->p->syntax);
|
||||||
|
if (tevent_req_nterror(req, status)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
tevent_req_done(req);
|
tevent_req_done(req);
|
||||||
}
|
}
|
||||||
@ -2307,6 +2311,7 @@ static void dcerpc_alter_context_recv_handler(struct rpc_request *subreq,
|
|||||||
struct dcerpc_alter_context_state);
|
struct dcerpc_alter_context_state);
|
||||||
struct dcecli_connection *conn = state->p->conn;
|
struct dcecli_connection *conn = state->p->conn;
|
||||||
struct dcecli_security *sec = &conn->security_state;
|
struct dcecli_security *sec = &conn->security_state;
|
||||||
|
struct dcerpc_binding *b = NULL;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2384,6 +2389,15 @@ static void dcerpc_alter_context_recv_handler(struct rpc_request *subreq,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We're the owner of the binding, so we're allowed to modify it.
|
||||||
|
*/
|
||||||
|
b = discard_const_p(struct dcerpc_binding, state->p->binding);
|
||||||
|
status = dcerpc_binding_set_abstract_syntax(b, &state->p->syntax);
|
||||||
|
if (tevent_req_nterror(req, status)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
tevent_req_done(req);
|
tevent_req_done(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user