tufang14

seg fault

seg fault
@@ -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