arrfab / rpms / httpd

Forked from rpms/httpd 5 years ago
Clone
Blob Blame History Raw
--- a/modules/http/mod_mime.c  2017/06/05 12:10:05 1797652
+++ b/modules/http/mod_mime.c  2017/06/05 12:12:31 1797653
@@ -528,9 +528,9 @@
     int res = -1;
     int c;
 
-    if (((s + 1) != NULL) && (*s == '\\')) {
+    if (*s == '\\') {
         c = (int) *(s + 1);
-        if (apr_isascii(c)) {
+        if (c && apr_isascii(c)) {
             res = 1;
         }
     }