Commit ec01c9d6 authored by deuce's avatar deuce
Browse files

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.
parent 86c75e62
......@@ -4995,7 +4995,7 @@ static SOCKET sendmail_negotiate(CRYPT_SESSION *session, smb_t *smb, smbmsg_t *m
{
int i;
int tls_retry;
SOCKET sock;
SOCKET sock=INVALID_SOCKET;
list_node_t* node;
ulong ip_addr;
union xp_sockaddr server_addr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment