Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
b2056f63
Commit
b2056f63
authored
Mar 13, 2016
by
Wandenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #230 making the module compatible with nginx versions older than 1.7.3 again
parent
4aa2abdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ngx_http_push_stream_module_utils.c
src/ngx_http_push_stream_module_utils.c
+2
-1
No files found.
src/ngx_http_push_stream_module_utils.c
View file @
b2056f63
...
...
@@ -313,10 +313,11 @@ ngx_http_push_stream_convert_char_to_msg_on_shared(ngx_http_push_stream_main_con
return
NULL
;
}
if
((
msg
->
formatted_messages
=
ngx_slab_
c
alloc
(
shpool
,
sizeof
(
ngx_str_t
)
*
msg
->
qtd_templates
))
==
NULL
)
{
if
((
msg
->
formatted_messages
=
ngx_slab_alloc
(
shpool
,
sizeof
(
ngx_str_t
)
*
msg
->
qtd_templates
))
==
NULL
)
{
ngx_http_push_stream_free_message_memory
(
shpool
,
msg
);
return
NULL
;
}
ngx_memzero
(
msg
->
formatted_messages
,
sizeof
(
ngx_str_t
)
*
msg
->
qtd_templates
);
for
(
q
=
ngx_queue_head
(
&
mcf
->
msg_templates
);
q
!=
ngx_queue_sentinel
(
&
mcf
->
msg_templates
);
q
=
ngx_queue_next
(
q
))
{
ngx_http_push_stream_template_t
*
cur
=
ngx_queue_data
(
q
,
ngx_http_push_stream_template_t
,
queue
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment