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 16:51:48 +0000 (12:51 -0400)
commit97a171e11f8fcec6ee66c6c7cc33665f3c1c9a88
treef0813b2727f71baf5734e0d037f6bf6861cbdf5b
parent7a86c13d20ba17a39767f808e6f0ea363430eeda
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.026127 seconds and 4 git commands to generate.