altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-CVE-2017-7668.patch

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