s3: libcli: smb1: Ensure we correctly finish a tevent req if the writev fails in...
authorJeremy Allison <jra@samba.org>
Thu, 19 Mar 2015 17:40:56 +0000 (10:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Mar 2015 03:51:15 +0000 (04:51 +0100)
commita5156c61a200f687c80da2af3b1c3037665e3857
treee0938afc7a8c67474d3092a78380f811e532a2c0
parent6b4a52c213a43760e7571b51f4bd2d8bd945c655
s3: libcli: smb1: Ensure we correctly finish a tevent req if the writev fails in the SMB1 case.

We haven't added the req to the pending array yet, as SMB1 requests can
be one-way (no reply needed). So if we error out after the writev, but
before we add to the pending array we must rember to terminate our current
tevent req with a tevent_req_nterror call.

Fixes bug 11173 - SMB1 Server disconnect can cause timeout on client write error.

https://bugzilla.samba.org/show_bug.cgi?id=11173

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Mar 20 05:08:25 CET 2015 on sn-devel-104

(cherry picked from commit 00d92f59257ce8fe1729becd72e13a42dfff0589)
libcli/smb/smbXcli_base.c