]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
block of code in here twice was writing over expanded, causing it to potentially...
authorMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 17:41:48 +0000 (13:41 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 17:41:48 +0000 (13:41 -0400)
src/mod/applications/mod_lcr/mod_lcr.c

index 7fda9487b1d17939af27cd6c323c4ad9857b52cc..099a9854bfc12d43e9795216c8d43d94161fb41d 100644 (file)
@@ -345,15 +345,6 @@ static char *get_bridge_data(switch_memory_pool_t *pool, char *dialed_number, ch
                }
        }
 
-       if (session && (switch_string_var_check_const(data) || switch_string_has_escaped_data(data))) {
-               expanded = switch_channel_expand_variables(switch_core_session_get_channel(session), data);
-               if (expanded == data ) {
-                       expanded = NULL;
-               } else {
-                       data = switch_core_strdup( pool, expanded );
-               }
-       }
-
        switch_safe_free(expanded);
 
        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Returning Dialstring %s\n", data);