MT#55283 fix unsigned integer underflow

The packet timestamp might be larger than our own "now" timestamp

Change-Id: I891dc1b6d191689980cce8e285c8f519f990c35d
rfuchs/gh1842
Richard Fuchs 9 months ago
parent d48f4f3ee0
commit 91f7b29cc5

@ -245,7 +245,7 @@ no_sfd:
tmp_t_reason = OFFER_TIMEOUT;
}
if (rtpe_now.tv_sec - timestamp < check)
if (timestamp < rtpe_now.tv_sec || rtpe_now.tv_sec - timestamp < check)
good = true;
next:

Loading…
Cancel
Save