749353
--- a/server/util.c  2017/05/30 12:27:41 1796855
749353
+++ b/server/util.c  2017/05/30 12:28:20 1796856
749353
@@ -1679,10 +1679,8 @@
749353
 
749353
     s = (const unsigned char *)line;
749353
     for (;;) {
749353
-        /* find start of token, skip all stop characters, note NUL
749353
-         * isn't a token stop, so we don't need to test for it
749353
-         */
749353
-        while (TEST_CHAR(*s, T_HTTP_TOKEN_STOP)) {
749353
+        /* find start of token, skip all stop characters */
749353
+        while (*s && TEST_CHAR(*s, T_HTTP_TOKEN_STOP)) {
749353
             ++s;
749353
         }
749353
         if (!*s) {