Fix another NULL dereference in the URL tree.

This commit is contained in:
Andreas Öman 2009-07-11 19:00:51 +00:00
parent 387626e6ef
commit e2e2246bd5

View file

@ -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++;