summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2015-01-22 09:55:05 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2015-01-22 09:55:05 -0500
commit40ccbda85d1e5787087d7acd3bb626bc7adcffba (patch)
treee154a291eb468a999bdf7fc9c14aa30e91f79a11
parent8e3407dde788b4b58783369462df3d13cfe6698c (diff)
Fix a potential memory bug in fastcgi.c
-rw-r--r--src/c/fastcgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/fastcgi.c b/src/c/fastcgi.c
index f3e66e3a..cda3e1f6 100644
--- a/src/c/fastcgi.c
+++ b/src/c/fastcgi.c
@@ -333,7 +333,7 @@ static void *worker(void *data) {
size_t path_size = 0;
char *path_buf = malloc(0);
- hs.uppercased = malloc(0);
+ hs.uppercased = malloc(6);
hs.uppercased_len = 0;
hs.nvps = malloc(sizeof(nvp));
hs.n_nvps = 1;