commit | 9bd0afdb2288bca58b7d2308023e84a4c2f85681 | [log] [download] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Jul 01 19:03:27 2015 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Jul 01 19:03:27 2015 +0200 |
tree | 05aaa309ac5dca2803f235aede93fe34229219cb | |
parent | 046589e42425eff5e87518e38ccd3302cb6e378d [diff] |
Add guards for closed socket in net.c This is particularly problematic when calling FD_SET( -1, ... ), but let's check it in all functions. This was introduced with the new API and the fact the net_free() now sets the internal fd to -1 in order to mark it as closed: now using this information.