You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xrdp-proprietary/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.
8 years ago
..
Makefile.am fix build with --enable-xrdpdebug=yes 8 years ago
libscp.h Don't include config_ac.h from any header files 8 years ago
libscp_commands.h o moved from GNU General Public License to Apache License, Version 2.0 13 years ago
libscp_commands_mng.h o moved from GNU General Public License to Apache License, Version 2.0 13 years ago
libscp_connection.c Include config_ac.h from all source files 8 years ago
libscp_connection.h o moved from GNU General Public License to Apache License, Version 2.0 13 years ago
libscp_init.c Eliminate APP_CC and DEFAULT_CC 8 years ago
libscp_init.h Eliminate APP_CC and DEFAULT_CC 8 years ago
libscp_lock.c Eliminate APP_CC and DEFAULT_CC 8 years ago
libscp_lock.h Eliminate APP_CC and DEFAULT_CC 8 years ago
libscp_session.c Include config_ac.h from all source files 8 years ago
libscp_session.h Use "void" for empty argument list in declarations 8 years ago
libscp_tcp.c Eliminate APP_CC and DEFAULT_CC 8 years ago
libscp_tcp.h Eliminate APP_CC and DEFAULT_CC 8 years ago
libscp_types.h vnc: change password file to use guid hash 8 years ago
libscp_types_mng.h o moved from GNU General Public License to Apache License, Version 2.0 13 years ago
libscp_v0.c Include config_ac.h from all source files 8 years ago
libscp_v0.h vnc: change password file to use guid hash 8 years ago
libscp_v1c.c Include config_ac.h from all source files 8 years ago
libscp_v1c.h o moved from GNU General Public License to Apache License, Version 2.0 13 years ago
libscp_v1c_mng.c Include config_ac.h from all source files 8 years ago
libscp_v1c_mng.h Remove redundant function declarations 8 years ago
libscp_v1s.c Include config_ac.h from all source files 8 years ago
libscp_v1s.h Fix warnings detected by -Wwrite-strings 9 years ago
libscp_v1s_mng.c xrdp-sesadmin: fix error when there are no sessions 8 years ago
libscp_v1s_mng.h Fix warnings detected by -Wwrite-strings 9 years ago
libscp_vX.c Include config_ac.h from all source files 8 years ago
libscp_vX.h Fix typos 9 years ago