s3:libsmb: return NT_STATUS_CONNECTION_INVALID if the fd is -1
authorBo Yang <boyang@samba.org>
Tue, 12 May 2009 05:51:25 +0000 (13:51 +0800)
committerStefan Metzmacher <metze@samba.org>
Wed, 13 May 2009 16:27:41 +0000 (18:27 +0200)
commit6ff09b323e1bb3b82a27f6015ba94ccce36993af
tree0458fbd82e059dba3d8dd4471334a4ad80b7a2af
parent83ff460401dd3ebd4daed5cb5f611adf44e184da
s3:libsmb: return NT_STATUS_CONNECTION_INVALID if the fd is -1

This way we can destinguish between requests which failed
because the connection broke after they were triggered
and the requests which are started on an already broken
connection.

This also moves the check to cli_smb_req_iov_send()
where it really belongs.

metze
source3/libsmb/async_smb.c