diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-03-14 13:02:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-03-14 13:03:44 -0400 |
commit | 36ad65a7d1709deeb4bc1ae3e994a30c3e7bf789 (patch) | |
tree | 706f763d81ecccc742fb7694914416da8592ac0c /src/ext/tinytest_macros.h | |
parent | a64be7eaa9add3ac147447faae77906bbafd1b0a (diff) | |
download | tor-36ad65a7d1709deeb4bc1ae3e994a30c3e7bf789.tar.gz tor-36ad65a7d1709deeb4bc1ae3e994a30c3e7bf789.zip |
When using open() to make sure we created a dir, close the fd afterwards
Found by coverity. Not in any released Tor. Fixes CID 1355640.
Also, don't check for fd correctness with assert(fd). You need to
assert (fd >= 0).
Diffstat (limited to 'src/ext/tinytest_macros.h')
0 files changed, 0 insertions, 0 deletions