Socket descriptor can be zero
vbickov opened this issue · comments
Volodymyr Bykov commented
The common check for invalid descriptor in the code is (ssl_data->fd <= 0), which is wrong. Zero is a valid descriptor.
Volodymyr Bykov commented
.... with a proper check (ssl_data->fd < 0) the SSLUserData constructor should be changed accordingly.