From e2e2246bd5f3ff5bc632a812b0c08320c680f00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 11 Jul 2009 19:00:51 +0000 Subject: [PATCH] Fix another NULL dereference in the URL tree. --- src/webui/webui.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/webui/webui.c b/src/webui/webui.c index 818b137d..8c55180b 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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++;