summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_process.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-09-10 16:09:19 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-09-10 16:09:19 -0700
commit06d92b787ad12b693ee174ce8885636c5511b31c (patch)
treed7915169df9c3c7fcd1061b2488ea7cf7bfd1a2b /xrdp/xrdp_process.c
parent31c5a30a9b6bdb6612b8971ba92bee9a8ae08af7 (diff)
downloadxrdp-proprietary-06d92b787ad12b693ee174ce8885636c5511b31c.tar.gz
xrdp-proprietary-06d92b787ad12b693ee174ce8885636c5511b31c.zip
VUL: call libxrdp_disconnect if libxrdp_process_incomming fails
Diffstat (limited to 'xrdp/xrdp_process.c')
-rw-r--r--xrdp/xrdp_process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c
index 228bf630..4c52eaac 100644
--- a/xrdp/xrdp_process.c
+++ b/xrdp/xrdp_process.c
@@ -203,6 +203,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);
}
/* Run end in module */
xrdp_process_mod_end(self);