From: Volker Lendecke Date: Tue, 16 Feb 2021 16:21:33 +0000 (+0100) Subject: libcli: Add a NULL check to tstream_npa X-Git-Tag: tevent-0.11.0~1619 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d656edffb94027475fd91c6a3a875c37a268b34;p=thirdparty%2Fsamba.git libcli: Add a NULL check to tstream_npa Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/libcli/named_pipe_auth/npa_tstream.c b/libcli/named_pipe_auth/npa_tstream.c index bc9d1ecb187..90c1e2f4de2 100644 --- a/libcli/named_pipe_auth/npa_tstream.c +++ b/libcli/named_pipe_auth/npa_tstream.c @@ -233,6 +233,9 @@ static void tstream_npa_connect_writev_done(struct tevent_req *subreq) subreq = tstream_u32_read_send( state, state->caller.ev, 0x00FFFFFF, state->unix_stream); + if (tevent_req_nomem(subreq, req)) { + return; + } tevent_req_set_callback(subreq, tstream_npa_connect_readv_done, req); }