arrfab / rpms / httpd

Forked from rpms/httpd 5 years ago
Clone

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

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