tstream: Fix CID 1167981 Unchecked return value
authorVolker Lendecke <vl@samba.org>
Fri, 30 Mar 2018 17:23:47 +0000 (12:23 -0500)
committerVolker Lendecke <vl@samba.org>
Mon, 16 Apr 2018 17:09:56 +0000 (19:09 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Apr 16 19:09:56 CEST 2018 on sn-devel-144

libcli/smb/tstream_smbXcli_np.c

index e039f9b165d5d369d25f2d545824cd553d632ba2..8dfc4fb2466a1ad1b1879c9a92d64c1a37c93b50 100644 (file)
@@ -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);