1
0
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:
Andrew Tridgell 2010-09-15 21:50:36 +10:00
parent 9a7d1b1e97
commit e7f21fa941
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}

View File

@ -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;