From d852bda291c05d00c3252bb5769f53f5c76ab8ae Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 25 Jul 2024 09:37:24 -0400 Subject: [PATCH] MT#55283 fix unsigned integer underflow The packet timestamp might be larger than our own "now" timestamp Change-Id: I891dc1b6d191689980cce8e285c8f519f990c35d (cherry picked from commit 91f7b29cc56e736e6b737d98753fa9250eefac3c) (cherry picked from commit cafd12e78b7d02e4f7b58c2721632cf3d625c996) --- daemon/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 1f34f15cd..cf3adf249 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -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: