Fix: sessiond: wrong variable checked for error code
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 21 Jul 2020 16:51:48 +0000 (12:51 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 21 Jul 2020 17:01:41 +0000 (13:01 -0400)
commit2482cbf1d45f3bfc83629408656b7cf5dc8eb23c
treeb727c6443dfd8e6a7876fe5b5d20e344a456a1b3
parent5e285896c2e871e202463691b9d55f2e59d837b2
Fix: sessiond: wrong variable checked for error code

Coverity reports:
  1430513 Logically dead code

  The indicated dead code may have performed some action; that action
  will never occur.

  In ust_app_open_packets: Code can never be reached because of a
  logical contradiction (CWE-561)

The `open_ret` variable should be checked instead of `ret` after calling
consumer_open_channel_packets.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I49ad2d2b747e29414fee7f0727df1feb343695bb
src/bin/lttng-sessiond/ust-app.c
This page took 0.025146 seconds and 4 git commands to generate.