Hi!

There is actually  a bug in xrdp 0.5 that prevents  to reuse an existing
session,  even  when the  requested  parameters  are compatible.  Daniel
Baumann has found the root of this bug and proposed a patch here:
 http://bugs.debian.org/573258

I also attach the patch to this message.

Index: sesman/session.c
===================================================================
RCS file: /cvsroot/xrdp/xrdp/sesman/session.c,v
retrieving revision 1.38
diff -u -r1.38 session.c
--- sesman/session.c	26 Dec 2009 23:02:56 -0000	1.38
+++ sesman/session.c	10 Mar 2010 10:22:05 -0000
@@ -55,6 +55,19 @@
 {
   struct session_chain* tmp;
 
+  /* convert from SCP_SESSION_TYPE namespace to SESMAN_SESSION_TYPE namespace */
+  switch (type)
+  {
+    case SCP_SESSION_TYPE_XVNC:
+      type = SESMAN_SESSION_TYPE_XVNC;
+      break;
+    case SCP_SESSION_TYPE_XRDP:
+      type = SESMAN_SESSION_TYPE_XRDP;
+      break;
+    default:
+      return 0;
+  }
+
   /*THREAD-FIX require chain lock */
   lock_chain_acquire();
 
-- 
BOFH excuse #117:
the printer thinks its a router.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to