1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

seg fault

seg fault
This commit is contained in:
tufang14 2015-03-17 17:45:20 +08:00
parent 79fbeeb8c6
commit 1cc3384a19

View file

@ -1104,8 +1104,8 @@ int SrsHttpServer::hijack(SrsHttpMessage* request, ISrsHttpHandler** ph)
int ret = ERROR_SUCCESS; int ret = ERROR_SUCCESS;
// when handler not the root, we think the handler is ok. // when handler not the root, we think the handler is ok.
ISrsHttpHandler* h = ph? *ph : NULL; ISrsHttpHandler* h = *ph? *ph : NULL;
if (h->entry && h->entry->pattern != "/") { if (h && h->entry && h->entry->pattern != "/") {
return ret; return ret;
} }