mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-17 00:51:09 +02:00
fixed path allocation
This commit is contained in:
parent
eb1cfef69e
commit
7500b4bd90
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue