]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Core] Coverity: 1500244 Use of 32-bit time_t
authorAndrey Volk <andywolk@gmail.com>
Sun, 1 Oct 2023 10:34:07 +0000 (13:34 +0300)
committerAndrey Volk <andywolk@gmail.com>
Sun, 1 Oct 2023 10:34:07 +0000 (13:34 +0300)
src/switch_core_media.c

index c0011ee68313b4c9573d9cd445405a82b2feb5a6..8a7f94f4fc44c93f7f92256cd0f2679d7d9e53de 100644 (file)
@@ -12050,7 +12050,7 @@ SWITCH_DECLARE(void) switch_core_media_patch_sdp(switch_core_session_t *session)
                                family = strchr(smh->mparams->sipip, ':') ? "IP6" : "IP4";
 
                                if (!smh->owner_id) {
-                                       smh->owner_id = (uint32_t) switch_epoch_time_now(NULL) * 31821U + 13849U;
+                                       smh->owner_id = (uint32_t)(intptr_t)switch_epoch_time_now(NULL) * 31821U + 13849U;
                                }
 
                                if (!smh->session_id) {