]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
switch_ivr_originate: Fix a infinite loop that will fill your machine ram... Occur...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 5 Mar 2010 13:38:40 +0000 (13:38 +0000)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 5 Mar 2010 13:38:40 +0000 (13:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16913 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 239a5cbb6bfbe0c13e90c4271c669e88ebebd898..9f54c094db14f35e5c8f7b6764b6e33d80caf00f 100644 (file)
@@ -1375,7 +1375,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_enterprise_originate(switch_core_sess
                }
        }
 
-       if (ovars) {
+       if (ovars && ovars != var_event) {
                for (hi = ovars->headers; hi; hi = hi->next) {
                        switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, hi->name, hi->value);
                }