diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2016-05-11 18:03:51 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2016-05-11 18:03:51 +0000 |
commit | c24375a7ded40ccac59c4e9811c8deb614ee4f2b (patch) | |
tree | 789183b44bad419bca19794b385f787d0504459d /sys/dev/wtap | |
parent | 5a333f6f5fe2499acd20481e9cbc1425ed3145ef (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/wtap')
0 files changed, 0 insertions, 0 deletions