From 035b9dabb18eb4fea4f975be85ca0004dc5e336e Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 26 Oct 2001 05:41:39 +0000 Subject: [PATCH] Fix to check for nonexistant nodename requests. --- src/Network/httpd.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Network/httpd.cxx b/src/Network/httpd.cxx index 30354ada1..4a8392525 100644 --- a/src/Network/httpd.cxx +++ b/src/Network/httpd.cxx @@ -152,7 +152,15 @@ void HttpdChannel::foundTerminator (void) { response += ""; response += getTerminator(); - if ( node->nChildren() > 0 ) { + if (node == NULL) { + response += "

Non-existent node requested!

"; + response += getTerminator(); + + response += ""; + response += request.c_str(); + response += " does not exist."; + response += getTerminator(); + } else if ( node->nChildren() > 0 ) { // request is a path with children response += "

Contents of \""; response += request; -- 2.39.5