From: Volker Lendecke Date: Wed, 14 Aug 2019 06:34:18 +0000 (+0200) Subject: librpc: Fix CID 1452292 Null pointer dereferences (REVERSE_INULL) X-Git-Tag: tdb-1.4.2~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3dad84630e58d380f5c735123fba7f67ce1d180;p=thirdparty%2Fsamba.git librpc: Fix CID 1452292 Null pointer dereferences (REVERSE_INULL) Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source4/librpc/rpc/dcerpc_roh.c b/source4/librpc/rpc/dcerpc_roh.c index 33baa52c618..3aa7551034a 100644 --- a/source4/librpc/rpc/dcerpc_roh.c +++ b/source4/librpc/rpc/dcerpc_roh.c @@ -609,7 +609,7 @@ static ssize_t tstream_roh_pending_bytes(struct tstream_context *stream) tstream = http_conn_tstream( ctx->roh_conn->default_channel_out->http_conn); - if (stream == NULL) { + if (tstream == NULL) { errno = ENOTCONN; return -1; }