From cb6f5f39548000a5349713fca234d0701f7c79da Mon Sep 17 00:00:00 2001 From: Marc Olivier Chouinard Date: Fri, 5 Mar 2010 13:38:40 +0000 Subject: [PATCH] switch_ivr_originate: Fix a infinite loop that will fill your machine ram... Occur when using bridge group/ and enterprise originate git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16913 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_originate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 239a5cbb6b..9f54c094db 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -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); }