From: ajay-sabat <33070898+ajay-sabat@users.noreply.github.com> Date: Wed, 11 Nov 2020 21:29:48 +0000 (-0800) Subject: [Core] switch_core_media: Correct srtp_remote_audio_crypto_key variable X-Git-Tag: v1.10.6^2~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d6da1342c891fd890f1f734c982ef2d254f9f4;p=thirdparty%2Ffreeswitch.git [Core] switch_core_media: Correct srtp_remote_audio_crypto_key variable --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index e0416e0768..1449724782 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -1637,8 +1637,9 @@ static void switch_core_session_get_recovery_crypto_key(switch_core_session_t *s } else return; if ((tmp = switch_channel_get_variable(session->channel, keyvar))) { - if ((tmp = switch_channel_get_variable(session->channel, ctypevar))) { - engine->crypto_type = switch_core_media_crypto_str2type(tmp); + const char *ct; + if ((ct = switch_channel_get_variable(session->channel, ctypevar))) { + engine->crypto_type = switch_core_media_crypto_str2type(ct); } engine->ssec[engine->crypto_type].remote_crypto_key = switch_core_session_strdup(session, tmp);