s3: Add min_setup, min_param and min_data to cli_trans_recv
authorVolker Lendecke <vl@samba.org>
Sat, 14 Nov 2009 10:12:50 +0000 (11:12 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 14 Nov 2009 11:20:12 +0000 (12:20 +0100)
commitf4cf1c56a20916018c9a6513754b0b08c24c9d04
tree959d0658b45497e77b0a3b9071f5c8761dff5e51
parent4a777ec4d709d2fce2378b7b4d740aa73c32e73b
s3: Add min_setup, min_param and min_data to cli_trans_recv

Every caller that expects to receive something needs to check if enough was
sent. Make this check mandatory for everyone.

Yes, this makes the parameter list for cli_trans a bit silly, but that's just
the way it is: A silly protocol request :-)

While there, convert some _done functions to tevent_req_simple_finish_ntstatus.
source3/include/proto.h
source3/libsmb/clifile.c
source3/libsmb/clifsinfo.c
source3/libsmb/clirap.c
source3/libsmb/clisecdesc.c
source3/libsmb/clitrans.c
source3/rpc_client/rpc_transport_np.c