mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
s4-rpcserver: set unbind method to NULL in remote server
this prevents a possible crash on disconnect
This commit is contained in:
parent
9a7d1b1e97
commit
e7f21fa941
@ -554,7 +554,7 @@ static int dcesrv_connection_context_destructor(struct dcesrv_connection_context
|
||||
{
|
||||
DLIST_REMOVE(c->conn->contexts, c);
|
||||
|
||||
if (c->iface) {
|
||||
if (c->iface && c->iface->unbind) {
|
||||
c->iface->unbind(c, c->iface);
|
||||
}
|
||||
|
||||
|
@ -322,6 +322,7 @@ static bool remote_fill_interface(struct dcesrv_interface *iface, const struct n
|
||||
iface->syntax_id = if_tabl->syntax_id;
|
||||
|
||||
iface->bind = remote_op_bind;
|
||||
iface->unbind = NULL;
|
||||
|
||||
iface->ndr_pull = remote_op_ndr_pull;
|
||||
iface->dispatch = remote_op_dispatch;
|
||||
|
Loading…
x
Reference in New Issue
Block a user