From 48bbb087939fd8e424233c9ef7b41b1326f0288f Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 14 Apr 2023 15:23:04 +0200 Subject: [PATCH] [server,proxy] remove too strict assert --- server/proxy/pf_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/proxy/pf_config.c b/server/proxy/pf_config.c index 3f3fc0f3e..d3ba57871 100644 --- a/server/proxy/pf_config.c +++ b/server/proxy/pf_config.c @@ -409,7 +409,7 @@ static char* pf_config_decode_base64(const char* data, const char* name, size_t* free(decoded); return NULL; } - WINPR_ASSERT(strnlen(decoded, decoded_length) == decoded_length - 1); + *pLength = decoded_length; return decoded; }