Skip to content

Commit f4fffe6

Browse files
committed
fix bug: crash when pull
1 parent 5ef23aa commit f4fffe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nginx-rtmp-module/ngx_rtmp_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ ngx_rtmp_init_session(ngx_rtmp_session_t *s, ngx_connection_t *c)
486486

487487
ngx_rtmp_set_chunk_size(s, NGX_RTMP_DEFAULT_CHUNK_SIZE);
488488

489-
s->variables = ngx_pcalloc(s->connection->pool, cmcf->variables.nelts
489+
s->variables = ngx_pcalloc(s->pool, cmcf->variables.nelts
490490
* sizeof(ngx_http_variable_value_t));
491491
if (s->variables == NULL) {
492492
ngx_rtmp_finalize_session(s);

0 commit comments

Comments
 (0)