[winpr,asn] fix too verbose log message

This commit is contained in:
akallabeth 2022-11-23 18:47:40 +01:00 committed by Martin Fleisz
parent f775e16302
commit 3262e11d1f

View File

@ -930,12 +930,12 @@ static size_t readTagAndLen(WinPrAsn1Decoder* dec, wStream* s, WinPrAsn1_tag* ta
{
size_t lenBytes;
if (!Stream_CheckAndLogRequiredLength(TAG, s, 1))
return FALSE;
if (Stream_GetRemainingLength(s) < 1)
return 0;
Stream_Read(s, tag, 1);
lenBytes = readLen(s, len, (dec->encoding == WINPR_ASN1_DER));
if (!lenBytes)
if (lenBytes == 0)
return 0;
return 1 + lenBytes;