Commit Graph

12 Commits (062699334e8b50f6d8d9b2f5d06f44aba96c8408)

Author SHA1 Message Date
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
Pavel Roskin 6ed4c969f4 Eliminate APP_CC and DEFAULT_CC 8 years ago
Pavel Roskin b2d3dcf169 Include config_ac.h from all source files 8 years ago
Pavel Roskin 65ac8e758b Fix memory leak: free session data
Call scp_session_destroy() in the functions that call
scp_session_create() and nowhere else.

As found by Valgrind, the session data is not freed if the session is
created successfully.
8 years ago
Pavel Roskin aeeb3d2c2e Fix warnings detected by -Wwrite-strings 9 years ago
Jay Sorg c6fa03102f copyright year update 12 years ago
ArvidNorr a2bbbd8cc3 Display PAM error in gateway setup, use domain name as IP/DNS, changed how the socket is closed 12 years ago
Laxmikant Rashinkar 1123323fda o moved from GNU General Public License to Apache License, Version 2.0
o applied new coding standards to all .c files
o moved some files around
13 years ago
norrarvid 4d4ebbf363 Initial syslog support in XRDP 13 years ago
jsorg71 28fe9bfde8 remove some dead code 15 years ago
jsorg71 328649af9b g_thread_sck set outside of lock fix and g_cfg should always be a pointer to a struct 16 years ago
ilsimo 7c79298612 added first management code
added a rough management tool
fixes in session.c
17 years ago