Fix: directory-handle: use of free'd handle on fstat() error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Feb 2020 01:13:49 +0000 (20:13 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Feb 2020 20:43:55 +0000 (15:43 -0500)
On an error to fstat a directory handle, a directory handle is
released and is still initialized as if the error had not occurred.

Return NULL early from lttng_directory_handle_create_from_dirfd()
to prevent those erroneous accesses.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia2a3bb1cfe8c90d3f7f87a68286a9b8524694d3c


No differences found
This page took 0.024917 seconds and 4 git commands to generate.