Blob Blame History Raw
--- parsers.c	2015/12/27 12:54:12	1.302
+++ parsers.c	2016/01/16 12:29:00	1.303
@@ -3287,6 +3287,13 @@
 {
    char *p, *q;
 
+   if (strlen(*header) < 7)
+   {
+      log_error(LOG_LEVEL_HEADER, "Removing empty Host header");
+      freez(*header);
+      return JB_ERR_OK;
+   }
+
    if (!csp->http->hostport || (*csp->http->hostport == '*') ||
        *csp->http->hostport == ' ' || *csp->http->hostport == '\0')
    {