From: Stefan Metzmacher Date: Tue, 7 Jul 2015 11:05:01 +0000 (+0200) Subject: CVE-2015-5370: s3:rpc_server: don't ignore failures of dcerpc_push_ncacn_packet() X-Git-Tag: samba-4.2.10~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25bf597124f217c55b5ca71a5ea9cb0ea83943e5;p=thirdparty%2Fsamba.git CVE-2015-5370: s3:rpc_server: don't ignore failures of dcerpc_push_ncacn_packet() BUG: https://bugzilla.samba.org/show_bug.cgi?id=11344 Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner --- diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 07046d45f0f..ea9d50d8a57 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -798,6 +798,7 @@ static bool api_pipe_bind_req(struct pipes_struct *p, if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("Failed to marshall bind_ack packet. (%s)\n", nt_errstr(status))); + goto err_exit; } if (auth_resp.length) { @@ -1058,6 +1059,7 @@ static bool api_pipe_alter_context(struct pipes_struct *p, if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("Failed to marshall bind_ack packet. (%s)\n", nt_errstr(status))); + goto err_exit; } if (auth_resp.length) {