diff options
| author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-10-08 23:57:32 +0200 |
|---|---|---|
| committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-10-09 00:19:57 +0200 |
| commit | 6f53e671aa7539cab02c9f739d84d28a343ca5bc (patch) | |
| tree | 9a415a8eb71bb30c7b69d29d7905712b5bff6d47 /src/libsystemd-network | |
| parent | 5ab99e076c72a44f2e174e48abd9945cd0180d76 (diff) | |
util: avoid double close of fd
We could end with a double close if we close the fd loop and flush_fd
fails. That would make us goto fail and there we close the fd once
again. This patch sets the fd to the return value for safe_close: -1
A fd with negative value will be ignored by the next call to
safe_close.
CID#996223
Diffstat (limited to 'src/libsystemd-network')
0 files changed, 0 insertions, 0 deletions
