MT#55283 fix unsigned integer underflow

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

Change-Id: I891dc1b6d191689980cce8e285c8f519f990c35d
(cherry picked from commit 91f7b29cc5)
(cherry picked from commit cafd12e78b)
mr12.4.1
Richard Fuchs 2 years ago
parent e70a38ef20
commit d852bda291

@ -257,7 +257,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