Skip to content

Commit

Permalink
fixed path allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
arut committed Sep 1, 2014
1 parent eb1cfef commit 7500b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hls/ngx_rtmp_hls_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ ngx_rtmp_hls_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v)
/* key path */

if (hacf->keys) {
len = hacf->key_path.len + 1 + ctx->name.len + NGX_INT64_LEN
len = hacf->key_path.len + 1 + ctx->name.len + 1 + NGX_INT64_LEN
+ sizeof(".key");

ctx->keyfile.data = ngx_palloc(s->connection->pool, len);
Expand Down

0 comments on commit 7500b4b

Please sign in to comment.