From 133555c1d18ab7d5d28f732abf932d4933db34e4 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 25 Jan 2018 20:34:26 +1000 Subject: [PATCH] fix again for garbage input --- src/www.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/www.c b/src/www.c index 732d48a..25ed557 100644 --- a/src/www.c +++ b/src/www.c @@ -422,6 +422,8 @@ int www_handler(void * cls, struct MHD_Connection * connection, const char * url char *endptr; // char *static_buffer; + page = NULL; + if (strcmp(method, "GET") == 0) { if (*ptr == NULL) { con_inf = (struct connection_info_s *)malloc(sizeof(struct connection_info_s));