From 91f7b29cc56e736e6b737d98753fa9250eefac3c 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 --- daemon/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 59db528a0..734be2943 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -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: