summaryrefslogtreecommitdiffstats
path: root/libfreerdp/core/rdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfreerdp/core/rdp.c')
-rw-r--r--libfreerdp/core/rdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfreerdp/core/rdp.c b/libfreerdp/core/rdp.c
index c1f6d3a..466a9a7 100644
--- a/libfreerdp/core/rdp.c
+++ b/libfreerdp/core/rdp.c
@@ -261,7 +261,7 @@ BOOL rdp_read_share_control_header(rdpRdp* rdp, wStream* s, UINT16* tpktLength,
WLog_Print(rdp->log, WLOG_DEBUG,
"[Flow control PDU] type=%s, tpktLength=%" PRIuz ", remainingLength=%" PRIuz,
pdu_type_to_str(*type, buffer, sizeof(buffer)), tpktLength ? *tpktLength : 0,
- *remainingLength);
+ remainingLength ? *remainingLength : 0);
return TRUE;
}
@@ -2259,7 +2259,7 @@ rdpRdp* rdp_new(rdpContext* context)
/* Keep a backup copy of settings for later comparisons */
if (!rdp_set_backup_settings(rdp))
- return FALSE;
+ goto fail;
rdp->settings->instance = context->instance;