bug found by pyite in new filter feature.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10200 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-10-30 02:27:22 +00:00
parent 7afabe3c23
commit fb90c20bc7
1 changed files with 3 additions and 3 deletions

View File

@ -177,8 +177,8 @@ static void flush_listener(listener_t *listener, switch_bool_t flush_log, switch
if (listener->event_queue) {
while (switch_queue_trypop(listener->event_queue, &pop) == SWITCH_STATUS_SUCCESS) {
if (!pop) continue;
switch_event_t *pevent = (switch_event_t *) pop;
if (!pop) continue;
switch_event_destroy(&pevent);
}
}
@ -214,7 +214,7 @@ static void event_handler(switch_event_t *event)
switch_mutex_lock(listen_list.mutex);
while(lp) {
uint8_t send = 0;
int send = 0;
l = lp;
lp = lp->next;
@ -245,7 +245,7 @@ static void event_handler(switch_event_t *event)
send = 0;
switch_mutex_lock(l->filter_mutex);
for (hp = l->filters->headers; hp; hp = hp->next) {
for (hp = l->filters->headers; hp && !send; hp = hp->next) {
if ((hval = switch_event_get_header(event, hp->name))) {
if (*hp->value == '/') {
switch_regex_t *re = NULL;