From a022958ddfe03e432c3f705e04d9c576e94af0c8 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 3 Apr 2020 15:10:49 +0200 Subject: [PATCH] Better error message for partial parsed capability --- libfreerdp/core/capabilities.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libfreerdp/core/capabilities.c b/libfreerdp/core/capabilities.c index 0478b0cc2..ba7ca6e64 100644 --- a/libfreerdp/core/capabilities.c +++ b/libfreerdp/core/capabilities.c @@ -3553,9 +3553,10 @@ static BOOL rdp_print_capability_sets(wStream* s, UINT16 numberCapabilities, BOO rest = Stream_GetRemainingLength(&sub); if (rest > 0) { - WLog_ERR(TAG, - "incorrect offset, type:0x%04" PRIX16 " actual:%" PRIuz " expected:%" PRIuz "", - type, length + rest, length); + WLog_WARN(TAG, + "incorrect capability offset, type:0x%04" PRIX16 " %" PRIu16 + " bytes expected, %" PRIuz "bytes remaining", + type, length, rest); } numberCapabilities--;