aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/sledjchisl/sledjchisl.c
diff options
context:
space:
mode:
authoronefang2020-04-27 16:31:30 +1000
committeronefang2020-04-27 16:31:30 +1000
commit524523387e1709410415db55f1033291859cf13d (patch)
tree309db2ab4b364f38ed38c3fdffef635377094ee4 /src/sledjchisl/sledjchisl.c
parentDon't delete old accounts and sessions on startup now. (diff)
downloadopensim-SC-524523387e1709410415db55f1033291859cf13d.zip
opensim-SC-524523387e1709410415db55f1033291859cf13d.tar.gz
opensim-SC-524523387e1709410415db55f1033291859cf13d.tar.bz2
opensim-SC-524523387e1709410415db55f1033291859cf13d.tar.xz
Don't fall over on NULL FCGI path.
Diffstat (limited to 'src/sledjchisl/sledjchisl.c')
-rw-r--r--src/sledjchisl/sledjchisl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index f798f52..8e9108e 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -6652,6 +6652,13 @@ t("BODY");
6652 I("%s %s://%s%s -> %s%s", Rd->Method, Rd->Scheme, Rd->Host, Rd->RUri, webRoot, Path); 6652 I("%s %s://%s%s -> %s%s", Rd->Method, Rd->Scheme, Rd->Host, Rd->RUri, webRoot, Path);
6653 D("Started FCGI web request ROLE = %s, body is %s bytes, pid %d.", Role, Length, getpid()); 6653 D("Started FCGI web request ROLE = %s, body is %s bytes, pid %d.", Role, Length, getpid());
6654 6654
6655 if (NULL == Path)
6656 {
6657 E("NULL path in FCGI request!");
6658 Rd->Rheaders->putstr(Rd->Rheaders, "Status", "404 Not Found");
6659 goto sendReply;
6660 }
6661
6655/* TODO - other headers may include - 6662/* TODO - other headers may include -
6656 different Content-type 6663 different Content-type
6657 Status: 304 Not Modified 6664 Status: 304 Not Modified