From 854446d43228b20283e78d20ee5402257961cce0 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 10 Sep 2013 10:45:09 -0700 Subject: [PATCH] VUL: call libxrdp_disconnect if libxrdp_process_incomming fails --- xrdp/xrdp_process.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c index 905db928..4cf78250 100644 --- a/xrdp/xrdp_process.c +++ b/xrdp/xrdp_process.c @@ -187,6 +187,12 @@ xrdp_process_main_loop(struct xrdp_process* self) } libxrdp_disconnect(self->session); } + else + { + /* this will try to send a disconnect, + maybe should check that connection got far enough */ + libxrdp_disconnect(self->session); + } xrdp_process_mod_end(self); libxrdp_exit(self->session); self->session = 0;