]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
this seems correct
authorBrian West <brian@freeswitch.org>
Tue, 29 Jan 2008 22:14:59 +0000 (22:14 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 29 Jan 2008 22:14:59 +0000 (22:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7434 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 5076713e79c0efb35a6f0c8ffa6d97bdf9062d04..20dbbb6139d36fc3b3ac43cb5880a1f1d0259631 100644 (file)
@@ -1595,8 +1595,8 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
                                                } else {
                                                        const char *a = switch_stristr("AES", tech_pvt->remote_crypto_key);
                                                        const char *b = switch_stristr("AES", crypto);
-                                                       
-                                                       if (a && b && strncasecmp(a, b, 23)) {
+
+                                                       if (a && b && !strncasecmp(a, b, 23)) {
                                                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Change Remote key to [%s]\n", crypto);
                                                                tech_pvt->remote_crypto_key = switch_core_session_strdup(tech_pvt->session, crypto);
                                                                tech_pvt->crypto_tag = crypto_tag;