commit | 0438d5c4212e1f306525c5142619ac79a8b20e02 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Tue Mar 28 23:41:50 2017 +0200 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Wed Mar 29 10:26:50 2017 -0400 |
tree | bfc350427e6f47d36eaf89aa05903d5f7b3405a5 | |
parent | b251dbba9845e36b93b59b7489ddfd9113009283 [diff] |
libsemanage: do not close uninitialized file descriptors When pipe() fails in semanage_pipe_data(), this function closes all file descriptors in variables output_fd, err_fd and input_fd even when they have not been initialized. Fix this by initializing the file descriptors to -1. This issue has been found using clang's static analyzer. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>