Allow smbd_smb2_request_error_ex() to cope with unread bytes on error.
authorJeremy Allison <jra@samba.org>
Tue, 19 Mar 2013 19:36:52 +0000 (12:36 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 25 Apr 2013 10:50:58 +0000 (12:50 +0200)
commit6083839d1c0372cd172d619b82a2862e9d46f81f
treecf3283ad75845327f8e37e534d9ee354695e5721
parent8854426ee1a31be34ab8be3f11c43685ede7141a
Allow smbd_smb2_request_error_ex() to cope with unread bytes on error.

Drain the socket if a RECVFILE write failed.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan (metze) Metzmacher <metze@samba.org>
(cherry picked from commit 63739440f128229a6a99d0653562d3735ae909fb)
source3/smbd/smb2_server.c