librpc: Fix CID 1452292 Null pointer dereferences (REVERSE_INULL)
authorVolker Lendecke <vl@samba.org>
Wed, 14 Aug 2019 06:34:18 +0000 (08:34 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 14 Aug 2019 07:39:38 +0000 (07:39 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/librpc/rpc/dcerpc_roh.c

index 33baa52..3aa7551 100644 (file)
@@ -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;
        }