altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

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

008793
--- a/modules/http/mod_mime.c  2017/06/05 12:10:05 1797652
008793
+++ b/modules/http/mod_mime.c  2017/06/05 12:12:31 1797653
008793
@@ -528,9 +528,9 @@
008793
     int res = -1;
008793
     int c;
008793
 
008793
-    if (((s + 1) != NULL) && (*s == '\\')) {
008793
+    if (*s == '\\') {
008793
         c = (int) *(s + 1);
008793
-        if (apr_isascii(c)) {
008793
+        if (c && apr_isascii(c)) {
008793
             res = 1;
008793
         }
008793
     }