summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorBo Yang <boyang@novell.com>2009-04-29 09:50:41 +0800
committerBo Yang <boyang@novell.com>2009-04-29 09:50:41 +0800
commitf8cc0e88fbbb082ead023e0cb437b1e12cf35459 (patch)
tree8641a1f8679ceecd03db75bff4406ede1a28ff40 /source3/libsmb
parent077bcc11257697b243916fbb02cd72b3a122b9ba (diff)
downloadsamba-f8cc0e88fbbb082ead023e0cb437b1e12cf35459.tar.gz
samba-f8cc0e88fbbb082ead023e0cb437b1e12cf35459.tar.bz2
samba-f8cc0e88fbbb082ead023e0cb437b1e12cf35459.zip
s3: fix crash in winbindd
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 6faf96c207..17040b8c9f 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -604,6 +604,10 @@ bool cli_smb_req_send(struct tevent_req *req)
struct cli_smb_state *state = tevent_req_data(
req, struct cli_smb_state);
+ if (state->cli->fd == -1) {
+ return false;
+ }
+
return cli_smb_req_iov_send(req, state, state->iov, state->iov_count);
}