Removed unnecessary range check.
authorArmin Novak <armin.novak@thincast.com>
Wed, 4 Apr 2018 08:45:32 +0000 (10:45 +0200)
committerArmin Novak <armin.novak@thincast.com>
Wed, 4 Apr 2018 08:45:32 +0000 (10:45 +0200)
libfreerdp/core/gateway/http.c

index ed2ca69..a249a6d 100644 (file)
@@ -473,7 +473,7 @@ static BOOL http_response_parse_header_field(HttpResponse* response, const char*
                errno = 0;
                val = _strtoui64(value, NULL, 0);
 
-               if ((errno != 0) || (val < 0) || (val > INT32_MAX))
+               if ((errno != 0) || (val > INT32_MAX))
                        return FALSE;
 
                response->ContentLength = val;