From: Stefan Metzmacher Date: Wed, 14 Mar 2012 13:24:54 +0000 (+0100) Subject: s4:librpc/rpc: if the connection is dead we don't want to be called recursivly. X-Git-Tag: tdb-1.2.10~170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6949a7908729bbbac50a5b59e404224264b5f184;p=thirdparty%2Fsamba.git s4:librpc/rpc: if the connection is dead we don't want to be called recursivly. metze --- diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 599ad786c64..63d91948f9b 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -989,6 +989,8 @@ static void dcerpc_connection_dead(struct dcecli_connection *conn, NTSTATUS stat conn->dead = true; + conn->transport.recv_data = NULL; + if (conn->transport.shutdown_pipe) { conn->transport.shutdown_pipe(conn, status); }