提交 61ca331a authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-4928

上级 08fdff45
...@@ -766,13 +766,13 @@ SWITCH_DECLARE(switch_status_t) switch_event_del_header_val(switch_event_t *even ...@@ -766,13 +766,13 @@ SWITCH_DECLARE(switch_status_t) switch_event_del_header_val(switch_event_t *even
unsigned long hash = 0; unsigned long hash = 0;
tp = event->headers; tp = event->headers;
hash = switch_ci_hashfunc_default(header_name, &hlen);
while (tp) { while (tp) {
hp = tp; hp = tp;
tp = tp->next; tp = tp->next;
x++; x++;
switch_assert(x < 1000000); 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 ((!hp->hash || hash == hp->hash) && !strcasecmp(header_name, hp->name) && (zstr(val) || !strcmp(hp->value, val))) {
if (lp) { if (lp) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论