The Samba-Bugzilla – Attachment 5402 Details for
Bug 7159
client rpc_transport doesn't cope with bad server data returns.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 3.5.x - part2
0002-Second-part-of-fix-for-bug-7159-client-rpc_transport.patch (text/plain), 1.09 KB, created by
Jeremy Allison
on 2010-02-19 17:04:45 UTC
(
hide
)
Description:
git-am fix for 3.5.x - part2
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2010-02-19 17:04:45 UTC
Size:
1.09 KB
patch
obsolete
>From 6cdd5eb36281d5f2f473b80e2aadf4e453d16d29 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Fri, 19 Feb 2010 14:24:17 -0800 >Subject: [PATCH 2/2] Second part of fix for bug #7159 - client rpc_transport doesn't cope with bad server data returns. > >If server returns zero on a NP read. Report pipe broken. >Prevents client from looping if it thinks there should be >more data. > >Jeremy. >(cherry picked from commit 0055e33dbed0e81548464d01bcf864255bab3159) >--- > source3/rpc_client/rpc_transport_np.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/source3/rpc_client/rpc_transport_np.c b/source3/rpc_client/rpc_transport_np.c >index 30c6f1f..1b9c7fc 100644 >--- a/source3/rpc_client/rpc_transport_np.c >+++ b/source3/rpc_client/rpc_transport_np.c >@@ -180,6 +180,12 @@ static void rpc_np_read_done(struct tevent_req *subreq) > return; > } > >+ if (state->received == 0) { >+ TALLOC_FREE(subreq); >+ tevent_req_nterror(req, NT_STATUS_PIPE_BROKEN); >+ return; >+ } >+ > memcpy(state->data, rcvbuf, state->received); > TALLOC_FREE(subreq); > tevent_req_done(req); >-- >1.6.6.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 7159
:
5401
| 5402 |
5403
|
5597