提交 198ae2fa authored 作者: William King's avatar William King

If the rsession is null, then don't try to unlock it, since that'll just result in a segfault.

上级 985c8de0
......@@ -462,7 +462,7 @@ switch_status_t rtmp_write_frame(switch_core_session_t *session, switch_frame_t
rsession = tech_pvt->rtmp_session;
if ( rsession == NULL ) {
goto error;
goto error_null;
}
switch_thread_rwlock_wrlock(rsession->rwlock);
......@@ -514,6 +514,8 @@ switch_status_t rtmp_write_frame(switch_core_session_t *session, switch_frame_t
error:
switch_thread_rwlock_unlock(rsession->rwlock);
error_null:
return SWITCH_STATUS_FALSE;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论