]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4928
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Dec 2012 20:04:58 +0000 (14:04 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Dec 2012 20:05:03 +0000 (14:05 -0600)
src/switch_event.c

index 32bc5b2d2df5cf5487a825b0659170ab37410ab9..b93f8746ad4713d7ae6811aa9d49ac015b0104af 100644 (file)
@@ -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) {