rdp = client->context->rdp;
fastpath = rdp->fastpath;
- if (!fastpath_read_header_rdp(fastpath, s, &length))
- return -1;
+ //if (!fastpath_read_header_rdp(fastpath, s, &length))
+ // return -1;
+
+ fastpath_read_header_rdp(fastpath, s, &length);
if ((length == 0) || (length > stream_get_left(s)))
{
freerdp_peer* client = (freerdp_peer*) extra;
rdpRdp* rdp = client->context->rdp;
+ printf("peer_recv_callback state = %d\n", rdp->state);
+
switch (rdp->state)
{
case CONNECTION_STATE_INITIAL:
break;
case CONNECTION_STATE_ACTIVE:
- if (!peer_recv_pdu(client, s))
+ if (peer_recv_pdu(client, s) < 0)
return -1;
break;