From 44d8b601ba3ea5749ab8a24db3a27f9743b49953 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 Conflicts: xrdp/xrdp_process.c --- xrdp/xrdp_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c index 7a88d524..b09e9498 100644 --- a/xrdp/xrdp_process.c +++ b/xrdp/xrdp_process.c @@ -190,6 +190,9 @@ xrdp_process_main_loop(struct xrdp_process* self) else { g_writeln("xrdp_process_main_loop: libxrdp_process_incomming failed"); + /* 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);