sign: fix payload/hexdump to not assume they are the last
This commit is contained in:
parent
3ed956eebc
commit
b9fd68f71d
@ -200,7 +200,10 @@ int HexDumpProtocol::protocolFrameSize(int streamIndex) const
|
||||
if (data.pad_until_end())
|
||||
{
|
||||
int pad = mpStream->frameLen(streamIndex)
|
||||
- (protocolFrameOffset(streamIndex) + len + kFcsSize);
|
||||
- (protocolFrameOffset(streamIndex)
|
||||
+ len
|
||||
+ protocolFramePayloadSize(streamIndex)
|
||||
+ kFcsSize);
|
||||
if (pad < 0)
|
||||
pad = 0;
|
||||
len += pad;
|
||||
|
@ -68,7 +68,7 @@ int PayloadProtocol::protocolFrameSize(int streamIndex) const
|
||||
int len;
|
||||
|
||||
len = mpStream->frameLen(streamIndex) - protocolFrameOffset(streamIndex)
|
||||
- kFcsSize;
|
||||
- protocolFramePayloadSize(streamIndex) - kFcsSize;
|
||||
|
||||
if (len < 0)
|
||||
len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user