[core,gateway] fix expected length rts_read_auth_verifier_with_stub

This commit is contained in:
Armin Novak
2023-04-04 10:17:33 +02:00
committed by akallabeth
parent adc6b60bcf
commit c638c51484

View File

@@ -920,8 +920,7 @@ static BOOL rts_read_pdu_fault(wStream* s, rpcconn_fault_hdr_t* ctx)
WINPR_ASSERT(s);
WINPR_ASSERT(ctx);
if (!Stream_CheckAndLogRequiredLength(
TAG, s, sizeof(rpcconn_fault_hdr_t) - sizeof(rpcconn_common_hdr_t)))
if (!Stream_CheckAndLogRequiredLength(TAG, s, 12))
return FALSE;
Stream_Read_UINT32(s, ctx->alloc_hint);
Stream_Read_UINT16(s, ctx->p_cont_id);