Skip to content

Commit

Permalink
[core] Removed condition that blocks extending group HS extension in …
Browse files Browse the repository at this point in the history
…future
  • Loading branch information
Mikołaj Małecki authored and maxsharabayko committed Mar 15, 2021
1 parent 18e8889 commit 3605f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ bool CUDT::interpretSrtHandshake(const CHandShake& hs,
// - When receiving HS response from the Responder, with its mirror group ID, so the agent
// must put the group into his peer group data
int32_t groupdata[GRPD_E_SIZE] = {};
if (bytelen < GRPD_MIN_SIZE * GRPD_FIELD_SIZE || bytelen % GRPD_FIELD_SIZE || blocklen > GRPD_E_SIZE)
if (bytelen < GRPD_MIN_SIZE * GRPD_FIELD_SIZE || bytelen % GRPD_FIELD_SIZE)
{
m_RejectReason = SRT_REJ_ROGUE;
LOGC(cnlog.Error, log << "PEER'S GROUP wrong size: " << (bytelen/GRPD_FIELD_SIZE));
Expand Down

0 comments on commit 3605f6f

Please sign in to comment.