Commit 4aa2abdc authored by Wandenberg's avatar Wandenberg

ensure that formatted_messages field is clear while message apply template process

parent 84739f70
...@@ -313,7 +313,7 @@ ngx_http_push_stream_convert_char_to_msg_on_shared(ngx_http_push_stream_main_con ...@@ -313,7 +313,7 @@ ngx_http_push_stream_convert_char_to_msg_on_shared(ngx_http_push_stream_main_con
return NULL; return NULL;
} }
if ((msg->formatted_messages = ngx_slab_alloc(shpool, sizeof(ngx_str_t) * msg->qtd_templates)) == NULL) { if ((msg->formatted_messages = ngx_slab_calloc(shpool, sizeof(ngx_str_t) * msg->qtd_templates)) == NULL) {
ngx_http_push_stream_free_message_memory(shpool, msg); ngx_http_push_stream_free_message_memory(shpool, msg);
return NULL; return NULL;
} }
......
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