VUL: call libxrdp_disconnect if libxrdp_process_incomming fails

This commit is contained in:
Jay Sorg 2013-09-10 10:45:09 -07:00
parent 85af7159db
commit 854446d432

View File

@ -187,6 +187,12 @@ xrdp_process_main_loop(struct xrdp_process* self)
} }
libxrdp_disconnect(self->session); 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); xrdp_process_mod_end(self);
libxrdp_exit(self->session); libxrdp_exit(self->session);
self->session = 0; self->session = 0;