Commit Graph

11 Commits (502998b8fe190a1eaa4fc9f4136ef85e231af0df)

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 b2d3dcf169 Include config_ac.h from all source files 8 years ago
Pavel Roskin aeeb3d2c2e Fix warnings detected by -Wwrite-strings 9 years ago
Pavel Roskin 1ded8ec437 Remove unused string support in scp_session_set_addr()
Using the same argument for binary and text data is not a good idea. If
string support is ever needed, it should be a separate function.

Remove SCP_ADDRESS_TYPE_IPV4_BIN and SCP_ADDRESS_TYPE_IPV6_BIN, use
SCP_ADDRESS_TYPE_IPV4 and SCP_ADDRESS_TYPE_IPV6, which simplifies the
code.
9 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 d83ebaa97a use do ... while (0) style for parse.h 15 years ago
jsorg71 8490a2b24b update copyright year 15 years ago
jsorg71 df8527b251 pass domain, program, and directory to sesman and use directory and program 16 years ago
jsorg71 3417482d10 update copyright year 16 years ago
ilsimo 7c79298612 added first management code
added a rough management tool
fixes in session.c
17 years ago