From: Andrey Volk Date: Sun, 1 Oct 2023 10:37:13 +0000 (+0300) Subject: [Core] Coverity: 1500250 Use of 32-bit time_t X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86951fa8178b90ba060233c0993d6a279dc48a7d;p=thirdparty%2Ffreeswitch.git [Core] Coverity: 1500250 Use of 32-bit time_t --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 17c93f2fa2..54881a9d97 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -4325,7 +4325,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session switch_sockaddr_create(&rtp_session->rtcp_from_addr, pool); } rtp_session->seq = (uint16_t) rand(); - rtp_session->ssrc = (uint32_t) ((intptr_t) rtp_session + (uint32_t) switch_epoch_time_now(NULL)); + rtp_session->ssrc = (uint32_t) ((intptr_t) rtp_session + (intptr_t) switch_epoch_time_now(NULL)); #ifdef DEBUG_TS_ROLLOVER rtp_session->last_write_ts = TS_ROLLOVER_START; #endif