projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bda3a3
)
Removed unnecessary range check.
author
Armin Novak
<armin.novak@thincast.com>
Wed, 4 Apr 2018 08:45:32 +0000
(10:45 +0200)
committer
Armin Novak
<armin.novak@thincast.com>
Wed, 4 Apr 2018 08:45:32 +0000
(10:45 +0200)
libfreerdp/core/gateway/http.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/gateway/http.c
b/libfreerdp/core/gateway/http.c
index
ed2ca69
..
a249a6d
100644
(file)
--- a/
libfreerdp/core/gateway/http.c
+++ b/
libfreerdp/core/gateway/http.c
@@
-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;