tcp: Added correct shutdown of socket in disconnect

This commit is contained in:
Martin Fleisz 2011-09-19 01:34:53 -07:00
parent bdbe1437eb
commit 2f91548a20

View File

@ -199,6 +199,7 @@ boolean tcp_disconnect(rdpTcp * tcp)
{
if (tcp->sockfd != -1)
{
shutdown(tcp->sockfd, SHUT_RDWR);
close(tcp->sockfd);
tcp->sockfd = -1;
}