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:15:28 +0000 (15:15 -0400)
commit229afb9c2b86080bfd645d39ae101a3c3389c622
tree85b0847f82b60ff31c3285e73837c6d7b4d4c33c
parentf376ad9c6fb65bef0106c2631299c989b3df9f57
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.026407 seconds and 4 git commands to generate.