Skip to content

Commit 7500b4b

Browse files
committed
fixed path allocation
1 parent eb1cfef commit 7500b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls/ngx_rtmp_hls_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ ngx_rtmp_hls_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v)
14381438
/* key path */
14391439

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

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

0 commit comments

Comments
 (0)