From df870334895876cc9c5bec2bf720e4e2a8625daa Mon Sep 17 00:00:00 2001 From: Idan Freiberg Date: Wed, 23 Jul 2014 15:37:47 +0300 Subject: [PATCH] trans: work on TLS --- common/trans.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/trans.c b/common/trans.c index d58bdd91..e13cd420 100644 --- a/common/trans.c +++ b/common/trans.c @@ -380,10 +380,6 @@ trans_tcp_force_read_s(struct trans *self, struct stream *in_s, int size) int APP_CC trans_force_read(struct trans *self, int size) { - if (self->tls != 0) - { - return xrdp_tls_force_read_s(self, self->in_s, size); - } return trans_force_read_s(self, self->in_s, size); } @@ -688,7 +684,7 @@ trans_shutdown_tls_mode(struct trans *self) return xrdp_tls_disconnect(self->tls); } - /* set callback to tls */ + /* set callback back to tcp */ self->trans_read_call = trans_tcp_force_read_s; self->trans_write_call = trans_tcp_force_write_s; return 0;