From cea442f24e459fea77da587bc93063b37ee7f807 Mon Sep 17 00:00:00 2001 From: ArvidNorr Date: Mon, 14 Jan 2013 01:13:29 -0800 Subject: [PATCH] login and synchronize fix --- libfreerdp/core/fastpath.c | 5 +++-- libfreerdp/crypto/ber.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libfreerdp/core/fastpath.c b/libfreerdp/core/fastpath.c index 7aaf093..5256d85 100644 --- a/libfreerdp/core/fastpath.c +++ b/libfreerdp/core/fastpath.c @@ -221,8 +221,9 @@ static BOOL fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 case FASTPATH_UPDATETYPE_SYNCHRONIZE: if (!fastpath_recv_update_synchronize(fastpath, s)) - return FALSE; - IFCALL(update->Synchronize, context); + printf("fastpath_recv_update_synchronize failure but we continue\n"); + else + IFCALL(update->Synchronize, context); break; case FASTPATH_UPDATETYPE_SURFCMDS: diff --git a/libfreerdp/crypto/ber.c b/libfreerdp/crypto/ber.c index c33ae48..313b524 100644 --- a/libfreerdp/crypto/ber.c +++ b/libfreerdp/crypto/ber.c @@ -40,7 +40,7 @@ BOOL ber_read_length(STREAM* s, int* length) if (byte == 1) stream_read_BYTE(s, *length); - if (byte == 2) + else if (byte == 2) stream_read_UINT16_be(s, *length); else return FALSE; -- 2.7.4