From: Anthony Minessale Date: Wed, 17 Oct 2012 16:29:45 +0000 (-0400) Subject: FS-4728 --resolve got it, related to multpile bindings X-Git-Tag: v1.3.0~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30a13ca0c682a03e6d5d8cd8ce5d463744af8477;p=thirdparty%2Ffreeswitch.git FS-4728 --resolve got it, related to multpile bindings --- diff --git a/src/switch_xml.c b/src/switch_xml.c index 2e7478093f..ec7eddec0a 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -222,12 +222,15 @@ SWITCH_DECLARE(switch_status_t) switch_xml_unbind_search_function_ptr(switch_xml switch_thread_rwlock_wrlock(B_RWLOCK); for (ptr = BINDINGS; ptr; ptr = ptr->next) { if (ptr->function == function) { + status = SWITCH_STATUS_SUCCESS; + if (last) { last->next = ptr->next; } else { BINDINGS = ptr->next; + last = NULL; + continue; } - status = SWITCH_STATUS_SUCCESS; } last = ptr; }