tstream: Fix CID 1167982 Unchecked return value
authorVolker Lendecke <vl@samba.org>
Fri, 30 Mar 2018 17:22:57 +0000 (12:22 -0500)
committerVolker Lendecke <vl@samba.org>
Mon, 16 Apr 2018 14:06:07 +0000 (16:06 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/tstream_smbXcli_np.c

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