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