From: Douglas Bagnall Date: Fri, 3 May 2019 04:06:18 +0000 (+1200) Subject: s4/rpc/dcerpc_roh_channel_out: check ndr_init (CID 1273065) X-Git-Tag: tdb-1.4.1~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=353d50a81e6c6eb8885e583653e29fcc3892c317;p=thirdparty%2Fsamba.git s4/rpc/dcerpc_roh_channel_out: check ndr_init (CID 1273065) Signed-off-by: Douglas Bagnall Reviewed-by: Gary Lockyer --- diff --git a/source4/librpc/rpc/dcerpc_roh_channel_in.c b/source4/librpc/rpc/dcerpc_roh_channel_in.c index d6707bf8680..9c0482e1fb3 100644 --- a/source4/librpc/rpc/dcerpc_roh_channel_in.c +++ b/source4/librpc/rpc/dcerpc_roh_channel_in.c @@ -411,6 +411,9 @@ struct tevent_req *roh_send_CONN_B1_send(TALLOC_CTX *mem_ctx, pkt.u.rts = rts; ndr = ndr_push_init_ctx(state); + if (ndr == NULL) { + return NULL; + } ndr->offset = 0; ndr_push_ncacn_packet(ndr, NDR_SCALARS, &pkt);