librpc: Fix CID 1452292 Null pointer dereferences (REVERSE_INULL)
[garming/samba-autobuild/.git] / source4 / librpc / rpc / dcerpc_roh.c
index 33baa52c6186227bfeb00893de1472e33a126b18..3aa7551034a1d2cb674d8613b642b902c32e7293 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;
        }