xrdp/sesman/libscp
Ben Cohen c7d08bd9e7 xrdp-sesadmin: fix error when there are no sessions
Test case:  On a system running xrdp with no sessions running run:

  xrdp-sesadmin -u=<user> -p=<password> -c=list

Expected result: "No sessions." (ignoring debug output)
Observed result: "Error getting session list."

In the SCP_SERVER_STATE_MNG_LISTREQ case in scp_v1_mng_process() if
there are no sessions it ends the scp session, which causes an error in
the client.  In commit 0017081d the client was changed to report errors,
giving the result above.

Fix by calling scp_v1s_mng_list_sessions() from scp_v1_mng_process()
even when there are no sessions, and if so sending a packet with a count
of zero so that the client gets what it expects.
2017-07-06 13:40:25 +09:00
..
libscp_commands_mng.h o moved from GNU General Public License to Apache License, Version 2.0 2012-09-19 20:51:34 -07:00
libscp_commands.h o moved from GNU General Public License to Apache License, Version 2.0 2012-09-19 20:51:34 -07:00
libscp_connection.c Include config_ac.h from all source files 2017-03-04 00:52:34 -08:00
libscp_connection.h o moved from GNU General Public License to Apache License, Version 2.0 2012-09-19 20:51:34 -07:00
libscp_init.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
libscp_init.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
libscp_lock.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
libscp_lock.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
libscp_session.c Include config_ac.h from all source files 2017-03-04 00:52:34 -08:00
libscp_session.h Use "void" for empty argument list in declarations 2017-01-05 17:27:20 -08:00
libscp_tcp.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
libscp_tcp.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
libscp_types_mng.h o moved from GNU General Public License to Apache License, Version 2.0 2012-09-19 20:51:34 -07:00
libscp_types.h vnc: change password file to use guid hash 2016-12-03 23:12:48 -08:00
libscp_v0.c Include config_ac.h from all source files 2017-03-04 00:52:34 -08:00
libscp_v0.h vnc: change password file to use guid hash 2016-12-03 23:12:48 -08:00
libscp_v1c_mng.c Include config_ac.h from all source files 2017-03-04 00:52:34 -08:00
libscp_v1c_mng.h Remove redundant function declarations 2017-01-11 23:25:42 -08:00
libscp_v1c.c Include config_ac.h from all source files 2017-03-04 00:52:34 -08:00
libscp_v1c.h o moved from GNU General Public License to Apache License, Version 2.0 2012-09-19 20:51:34 -07:00
libscp_v1s_mng.c xrdp-sesadmin: fix error when there are no sessions 2017-07-06 13:40:25 +09:00
libscp_v1s_mng.h Fix warnings detected by -Wwrite-strings 2016-07-08 04:29:42 +00:00
libscp_v1s.c Include config_ac.h from all source files 2017-03-04 00:52:34 -08:00
libscp_v1s.h Fix warnings detected by -Wwrite-strings 2016-07-08 04:29:42 +00:00
libscp_vX.c Include config_ac.h from all source files 2017-03-04 00:52:34 -08:00
libscp_vX.h Fix typos 2016-02-13 20:41:07 -08:00
libscp.h Don't include config_ac.h from any header files 2017-03-04 00:52:34 -08:00
Makefile.am fix build with --enable-xrdpdebug=yes 2017-01-04 19:20:44 +00:00