SF Bug Tracker id 3497140 - Bug fix in http_get_code_text
Submitted: Fabrice Fontaine ( ffontaine ) - 2012-03-05 13:07:03 PST
Replace if( statusCode < 100 && statusCode >= 600 ) which can't be true
by if( statusCode < 100 || statusCode >= 600 ).
(cherry picked from commit 1a1570fe0f
)
This commit is contained in:
parent
d4ff4ecc86
commit
75fdad1108
@ -359,6 +359,15 @@ Version 1.6.16
|
||||
The problem was observed on WIN32.
|
||||
|
||||
|
||||
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
SF Bug Tracker id 3497140 - Bug fix in http_get_code_text
|
||||
|
||||
Submitted: Fabrice Fontaine ( ffontaine ) - 2012-03-05 13:07:03 PST
|
||||
|
||||
Replace if( statusCode < 100 && statusCode >= 600 ) which can't be true
|
||||
by if( statusCode < 100 || statusCode >= 600 ).
|
||||
|
||||
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
SF Bug Tracker id 3497126 - Resource leak in http_RecvPostMessage
|
||||
|
@ -2,6 +2,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2003 Intel Corporation
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2012 France Telecom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@ -179,7 +180,7 @@ http_get_code_text( int statusCode )
|
||||
init_tables();
|
||||
}
|
||||
|
||||
if( statusCode < 100 && statusCode >= 600 ) {
|
||||
if( statusCode < 100 || statusCode >= 600 ) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user