正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -1104,8 +1104,8 @@ int SrsHttpServer::hijack(SrsHttpMessage* request, ISrsHttpHandler** ph) | @@ -1104,8 +1104,8 @@ int SrsHttpServer::hijack(SrsHttpMessage* request, ISrsHttpHandler** ph) | ||
| 1104 | int ret = ERROR_SUCCESS; | 1104 | int ret = ERROR_SUCCESS; |
| 1105 | 1105 | ||
| 1106 | // when handler not the root, we think the handler is ok. | 1106 | // when handler not the root, we think the handler is ok. |
| 1107 | - ISrsHttpHandler* h = ph? *ph : NULL; | ||
| 1108 | - if (h->entry && h->entry->pattern != "/") { | 1107 | + ISrsHttpHandler* h = *ph? *ph : NULL; |
| 1108 | + if (h && h->entry && h->entry->pattern != "/") { | ||
| 1109 | return ret; | 1109 | return ret; |
| 1110 | } | 1110 | } |
| 1111 | 1111 |
-
请 注册 或 登录 后发表评论