Browse Source

MT#55283 fix unsigned integer underflow

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

Change-Id: I891dc1b6d191689980cce8e285c8f519f990c35d
rfuchs/gh1842
Richard Fuchs 1 year ago
parent
commit
91f7b29cc5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/call.c

+ 1
- 1
daemon/call.c View File

@ -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