diff options
author | Tim Prouty <tprouty@samba.org> | 2010-01-04 12:57:34 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2010-01-07 15:32:27 -0800 |
commit | 34f0cff0664f1c160ee7442461e9f875e8d8f4dc (patch) | |
tree | 36f3d6a002d6457910d934b80d92479234c894a0 /source3/libsmb | |
parent | dc689827114c46b3ca2a75082421dc2d98001ce7 (diff) | |
download | samba-34f0cff0664f1c160ee7442461e9f875e8d8f4dc.tar.gz samba-34f0cff0664f1c160ee7442461e9f875e8d8f4dc.tar.bz2 samba-34f0cff0664f1c160ee7442461e9f875e8d8f4dc.zip |
s3 torture: Prevent smbcli segfault when running smbtorture3 against an smbd with security=share
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 31216b8240..fa79ebcea3 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1573,6 +1573,8 @@ struct tevent_req *cli_tcon_andx_create(TALLOC_CTX *mem_ctx, char *tmp = NULL; uint8_t *bytes; + *psmbreq = NULL; + req = tevent_req_create(mem_ctx, &state, struct cli_tcon_andx_state); if (req == NULL) { return NULL; @@ -1708,6 +1710,9 @@ struct tevent_req *cli_tcon_andx_send(TALLOC_CTX *mem_ctx, if (req == NULL) { return NULL; } + if (subreq == NULL) { + return req; + } status = cli_smb_req_send(subreq); if (!NT_STATUS_IS_OK(status)) { tevent_req_nterror(req, status); |