Fix another NULL dereference in the URL tree.
This commit is contained in:
parent
387626e6ef
commit
e2e2246bd5
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@ page_static_bundle(http_connection_t *hc, const char *remain, void *opaque)
|
|||
const char *content = NULL, *postfix;
|
||||
int n;
|
||||
|
||||
if(remain == NULL)
|
||||
return 404;
|
||||
|
||||
postfix = strrchr(remain, '.');
|
||||
if(postfix != NULL) {
|
||||
postfix++;
|
||||
|
|
Loading…
Add table
Reference in a new issue