Skip to content

Commit

Permalink
fix bug: crash when pull
Browse files Browse the repository at this point in the history
  • Loading branch information
im-pingo committed Feb 21, 2020
1 parent 5ef23aa commit f4fffe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nginx-rtmp-module/ngx_rtmp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ ngx_rtmp_init_session(ngx_rtmp_session_t *s, ngx_connection_t *c)

ngx_rtmp_set_chunk_size(s, NGX_RTMP_DEFAULT_CHUNK_SIZE);

s->variables = ngx_pcalloc(s->connection->pool, cmcf->variables.nelts
s->variables = ngx_pcalloc(s->pool, cmcf->variables.nelts
* sizeof(ngx_http_variable_value_t));
if (s->variables == NULL) {
ngx_rtmp_finalize_session(s);
Expand Down

0 comments on commit f4fffe6

Please sign in to comment.