]> granicus.if.org Git - php/commitdiff
Nuke compiler warning, wrong fix that shouldn't have been in the previously commit
authorKalle Sommer Nielsen <kalle@php.net>
Wed, 18 Aug 2010 18:00:33 +0000 (18:00 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Wed, 18 Aug 2010 18:00:33 +0000 (18:00 +0000)
sapi/cgi/fastcgi.c

index 7e2963b6ac9a3c27c7df13e63d0b17ae3ff0c5a0..9ad9473c8ee4baa3600957dff08714436de6fbbe 100644 (file)
@@ -848,7 +848,7 @@ static int fcgi_get_params(fcgi_request *req, unsigned char *p, unsigned char *e
                        val_len |= *p++;
                }
                if (UNEXPECTED(name_len + val_len < 0) ||
-                   UNEXPECTED((unsigned char *) (name_len + val_len) > end - p)) {
+                   UNEXPECTED(name_len + val_len > (unsigned int) (end - p))) {
                        /* Malformated request */
                        ret = 0;
                        break;