diff --git a/trunk/src/app/srs_app_http_conn.cpp b/trunk/src/app/srs_app_http_conn.cpp index c3d26a4f0..45698d429 100644 --- a/trunk/src/app/srs_app_http_conn.cpp +++ b/trunk/src/app/srs_app_http_conn.cpp @@ -1104,8 +1104,8 @@ int SrsHttpServer::hijack(SrsHttpMessage* request, ISrsHttpHandler** ph) int ret = ERROR_SUCCESS; // when handler not the root, we think the handler is ok. - ISrsHttpHandler* h = ph? *ph : NULL; - if (h->entry && h->entry->pattern != "/") { + ISrsHttpHandler* h = *ph? *ph : NULL; + if (h && h->entry && h->entry->pattern != "/") { return ret; }