mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
CVE-2015-5370: s4:rpc_server: remove pointless dcesrv_find_context() from dcesrv_bind()
BIND is the first pdu, which means the list of contexts is always empty. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11344 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
parent
57afdaa79b
commit
909538c885
@ -726,12 +726,6 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
|
||||
}
|
||||
|
||||
context_id = call->pkt.u.bind.ctx_list[0].context_id;
|
||||
|
||||
/* you can't bind twice on one context */
|
||||
if (dcesrv_find_context(call->conn, context_id) != NULL) {
|
||||
return dcesrv_bind_nak(call, 0);
|
||||
}
|
||||
|
||||
if_version = call->pkt.u.bind.ctx_list[0].abstract_syntax.if_version;
|
||||
uuid = call->pkt.u.bind.ctx_list[0].abstract_syntax.uuid;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user