Commit fb803a12 authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

change compare function to be exact match

parent a50bee71
......@@ -304,7 +304,7 @@ ngx_http_push_stream_find_or_add_template(ngx_conf_t *cf, ngx_str_t template) {
u_char *aux = NULL;
while ((cur = (ngx_http_push_stream_msg_template_t *) ngx_queue_next(&cur->queue)) != sentinel) {
if (ngx_strncmp(cur->template.data, template.data, cur->template.len) == 0) {
if (ngx_memn2cmp(cur->template.data, template.data, cur->template.len, template.len) == 0) {
return cur->index;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment