Set closed RDP socket to -1 rather than 0

This commit is contained in:
matt335672 2022-04-01 13:00:33 +01:00
parent 1d190c6ea8
commit dc72ca269b
1 changed files with 1 additions and 1 deletions

View File

@ -1383,7 +1383,7 @@ close_rdp_socket(struct xrdp_mcs *self)
{
trans_shutdown_tls_mode(self->iso_layer->trans);
g_tcp_close(self->iso_layer->trans->sck);
self->iso_layer->trans->sck = 0 ;
self->iso_layer->trans->sck = -1;
LOG_DEVEL(LOG_LEVEL_DEBUG, "xrdp_mcs_disconnect - socket closed");
return;
}