From: Stefan Metzmacher Date: Wed, 14 Mar 2012 13:25:48 +0000 (+0100) Subject: s4:librpc/rpc: if the connecion is dead we're done X-Git-Tag: tdb-1.2.10~169 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=553a8921a453d839b87b941719b1ad44c694904f;p=thirdparty%2Fsamba.git s4:librpc/rpc: if the connecion is dead we're done There's no point in doing anymore processing, it can just lead to crashes. metze --- diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 63d91948f9b..47e98e84480 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -1045,6 +1045,7 @@ static void dcerpc_recv_data(struct dcecli_connection *conn, DATA_BLOB *blob, NT if (!NT_STATUS_IS_OK(status)) { data_blob_free(blob); dcerpc_connection_dead(conn, status); + return; } dcerpc_request_recv_data(conn, blob, &pkt);