diff options
author | 2016-09-01 21:06:09 +0000 | |
---|---|---|
committer | 2016-09-01 21:06:09 +0000 | |
commit | 85e547ed54912d6e3a3fe09eebcfd3c1ccfb18bb (patch) | |
tree | 8efeae3aaa67606ed4cbcfb2ab24ce3212b3cac9 /sys/dev/usb/uts.c | |
parent | tweak previous; (diff) | |
download | wireguard-openbsd-85e547ed54912d6e3a3fe09eebcfd3c1ccfb18bb.tar.xz wireguard-openbsd-85e547ed54912d6e3a3fe09eebcfd3c1ccfb18bb.zip |
Fix file descriptor leak
Found by Coverity Scan. The ffropen() function returns FIODIR when the
file is a directory. Check return value on error, in case of directory,
close the descriptor.
Source Joachim Nilsson, ok sunil@
Diffstat (limited to 'sys/dev/usb/uts.c')
0 files changed, 0 insertions, 0 deletions