Skip to content

Commit bcf7df1

Browse files
committed
fixed crash in dash
1 parent 61cb334 commit bcf7df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dash/ngx_rtmp_dash_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ ngx_rtmp_dash_close_fragments(ngx_rtmp_session_t *s)
642642
ngx_rtmp_dash_ctx_t *ctx;
643643

644644
ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_dash_module);
645-
if (!ctx->opened) {
645+
if (ctx == NULL || !ctx->opened) {
646646
return NGX_OK;
647647
}
648648

0 commit comments

Comments
 (0)