The branch, master has been updated
       via  78c3533 tstream: Fix CID 1167981 Unchecked return value
       via  115423c tstream: Fix CID 1167982 Unchecked return value
      from  b8f7167 libdgram: Fix an error path memleak

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 78c3533729c99527e07813170f70bed1a3c836b2
Author: Volker Lendecke <v...@samba.org>
Date:   Fri Mar 30 12:23:47 2018 -0500

    tstream: Fix CID 1167981 Unchecked return value
    
    Signed-off-by: Volker Lendecke <v...@samba.org>
    Reviewed-by: Stefan Metzmacher <me...@samba.org>
    
    Autobuild-User(master): Volker Lendecke <v...@samba.org>
    Autobuild-Date(master): Mon Apr 16 19:09:56 CEST 2018 on sn-devel-144

commit 115423c95669772d2a8874c7557f76cd1bd567be
Author: Volker Lendecke <v...@samba.org>
Date:   Fri Mar 30 12:22:57 2018 -0500

    tstream: Fix CID 1167982 Unchecked return value
    
    Signed-off-by: Volker Lendecke <v...@samba.org>
    Reviewed-by: Stefan Metzmacher <me...@samba.org>

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

Summary of changes:
 libcli/smb/tstream_smbXcli_np.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/libcli/smb/tstream_smbXcli_np.c b/libcli/smb/tstream_smbXcli_np.c
index a59db13..8dfc4fb 100644
--- a/libcli/smb/tstream_smbXcli_np.c
+++ b/libcli/smb/tstream_smbXcli_np.c
@@ -1010,7 +1010,7 @@ static void tstream_smbXcli_np_readv_trans_done(struct 
tevent_req *subreq)
        cli_nps->read.buf = talloc_array(cli_nps, uint8_t, received);
        if (cli_nps->read.buf == NULL) {
                TALLOC_FREE(subreq);
-               tevent_req_nomem(cli_nps->read.buf, req);
+               tevent_req_oom(req);
                return;
        }
        memcpy(cli_nps->read.buf, rcvbuf, received);
@@ -1096,7 +1096,7 @@ static void tstream_smbXcli_np_readv_read_done(struct 
tevent_req *subreq)
        cli_nps->read.buf = talloc_array(cli_nps, uint8_t, received);
        if (cli_nps->read.buf == NULL) {
                TALLOC_FREE(subreq);
-               tevent_req_nomem(cli_nps->read.buf, req);
+               tevent_req_oom(req);
                return;
        }
        memcpy(cli_nps->read.buf, rcvbuf, received);


-- 
Samba Shared Repository

Reply via email to