From: Anthony Minessale Date: Tue, 11 Dec 2012 20:04:58 +0000 (-0600) Subject: FS-4928 X-Git-Tag: v1.3.10~14^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61ca331a28b229488d3f361c239e215a11bdb5ca;p=thirdparty%2Ffreeswitch.git FS-4928 --- diff --git a/src/switch_event.c b/src/switch_event.c index 32bc5b2d2d..b93f8746ad 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -766,13 +766,13 @@ SWITCH_DECLARE(switch_status_t) switch_event_del_header_val(switch_event_t *even unsigned long hash = 0; tp = event->headers; + hash = switch_ci_hashfunc_default(header_name, &hlen); while (tp) { hp = tp; tp = tp->next; x++; switch_assert(x < 1000000); - hash = switch_ci_hashfunc_default(header_name, &hlen); if ((!hp->hash || hash == hp->hash) && !strcasecmp(header_name, hp->name) && (zstr(val) || !strcmp(hp->value, val))) { if (lp) {