Second part of fix for bug #7159 - client rpc_transport doesn't cope with bad server...
authorJeremy Allison <jra@samba.org>
Fri, 19 Feb 2010 22:24:17 +0000 (14:24 -0800)
committerStefan Metzmacher <metze@samba.org>
Wed, 7 Apr 2010 09:04:15 +0000 (11:04 +0200)
commit711485723b2f723a9ad32b1b753f73a3d771c2a2
treeca095481950e85a6bba253c298e56900f7e3db39
parenta22cfb021e43382f9109972acbe4b9e2faefe3ab
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)
(cherry picked from commit f5ca9f84e9b511c2ba7a4280b1997daa441f9877)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_client/rpc_transport_np.c