The branch, v3-5-test has been updated
       via  db51127... s3 torture: Prevent smbcli segfault when running 
smbtorture3 against an smbd with security=share
      from  fb1b090... s3-docs: Improve "winbind nss info" section in man 
smb.conf.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit db511272f3393a35a1e596740b88487333ebeb24
Author: Tim Prouty <[email protected]>
Date:   Mon Jan 4 12:57:34 2010 -0800

    s3 torture: Prevent smbcli segfault when running smbtorture3 against an 
smbd with security=share
    
    Fix bug #7370 (3.5.2 smbclient segfaults when used against old samba
    "security = share").

-----------------------------------------------------------------------

Summary of changes:
 source3/libsmb/cliconnect.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 7aa8901..22be999 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1320,6 +1320,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;
@@ -1455,6 +1457,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);


-- 
Samba Shared Repository

Reply via email to