aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ofw/openfirm.h
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2016-05-11 18:03:51 +0000
committerConrad Meyer <cem@FreeBSD.org>2016-05-11 18:03:51 +0000
commitc24375a7ded40ccac59c4e9811c8deb614ee4f2b (patch)
tree789183b44bad419bca19794b385f787d0504459d /sys/dev/ofw/openfirm.h
parent5a333f6f5fe2499acd20481e9cbc1425ed3145ef (diff)
whois(1): Fix potential double-close and logic mistakes
Close the fd the poll error was detected on, rather than the last opened fd, to fix the double-close. Use -1 to make it explict which int variables no longer own socket file descriptors. Actually shrink, rather than grow, the poll timeout to match comment. Reported by: Coverity CID: 1304860, 1305616 Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=299476
Diffstat (limited to 'sys/dev/ofw/openfirm.h')
0 files changed, 0 insertions, 0 deletions