diff options
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_sock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_sock.c b/source4/librpc/rpc/dcerpc_sock.c index 6222fd6bc9..a7ceb38750 100644 --- a/source4/librpc/rpc/dcerpc_sock.c +++ b/source4/librpc/rpc/dcerpc_sock.c @@ -275,7 +275,11 @@ static struct event_context *sock_event_context(struct dcerpc_connection *p) */ static NTSTATUS sock_shutdown_pipe(struct dcerpc_connection *p) { - sock_dead(p, NT_STATUS_OK); + struct sock_private *sock = p->transport.private; + + if (sock && sock->sock) { + sock_dead(p, NT_STATUS_OK); + } return NT_STATUS_OK; } |