Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#365 server redirection error: rdesktop don't send valid session id in MCS Connect Initial PDU

v1.8.2
closed-fixed
None
5
2014-05-21
2013-06-14
leeyiw
No

when rdesktop recieve the server redirection pdu, rdesktop didn't get the SessionId sent by RDP server. It's specified in MS-RDPBCGR 2.2.13.1. The code are in rdp.c 1483. The quickly fix in rdp.c is:

1483c1481,1483
< in_uint8s(s, 2);
---
> s->p -= 2;
> in_uint32_le(s, g_redirect_session_id);

here add a global var g_redirect_session_id, and in secure.c 459:

459c456
< out_uint32(s, 0);
---
> out_uint32(s, g_redirect_session_id);

this feature is needed by a lot scenario of server redirection.

Discussion

    • Group: v1.7.1 --> NextRelease
     
    • status: open --> open-fixed
     
  • The server redirection code has been rewritten and this is non issue anymore.

     
    • status: open-fixed --> closed-fixed
    • assigned_to: Peter Åstrand --> Henrik Andersson