sendmail_open_socket() will close the passed socket if it's not INVALID_SOCKET
So, we really should initialize sock to INVALID_SOCKET before calling it. This should fix the "random descriptors are closed" issue.
Loading
Please register or sign in to comment