Fix: sessiond: double socket close on allocation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Oct 2019 19:15:28 +0000 (15:15 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Oct 2019 19:17:41 +0000 (15:17 -0400)
commit2d70c828d492c82381300aeef48cdc4eeec33bf6
tree12116b4f431f87367cb7f508864f1e1fbdd85f2b
parent9fdd1d0698a8d86bbda738a48f66894515b0aaff
Fix: sessiond: double socket close on allocation failure

The application registration thread performs a double close() on
an application socket whenever it fails to allocate a ust_command.

Assign `-1` to `sock` after the initial close() to follow the
pattern of other close paths.

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