aboutsummaryrefslogtreecommitdiff
path: root/src/lib/request_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/request_info.c')
-rw-r--r--src/lib/request_info.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/request_info.c b/src/lib/request_info.c
index 5f481d98..51aae075 100644
--- a/src/lib/request_info.c
+++ b/src/lib/request_info.c
@@ -42,11 +42,11 @@
42 */ 42 */
43enum MHD_Bool 43enum MHD_Bool
44MHD_request_get_information_sz (struct MHD_Request *request, 44MHD_request_get_information_sz (struct MHD_Request *request,
45 enum MHD_RequestInformationType info_type, 45 enum MHD_RequestInformationType info_type,
46 union MHD_RequestInformation *return_value, 46 union MHD_RequestInformation *return_value,
47 size_t return_value_size) 47 size_t return_value_size)
48{ 48{
49#define CHECK_SIZE(type) if (sizeof(type) < return_value_size) \ 49#define CHECK_SIZE(type) if (sizeof(type) < return_value_size) \
50 return MHD_NO 50 return MHD_NO
51 51
52 switch (info_type) 52 switch (info_type)
@@ -70,8 +70,8 @@ MHD_request_get_information_sz (struct MHD_Request *request,
70 case MHD_REQUEST_INFORMATION_HEADER_SIZE: 70 case MHD_REQUEST_INFORMATION_HEADER_SIZE:
71 CHECK_SIZE (size_t); 71 CHECK_SIZE (size_t);
72 if ( (MHD_REQUEST_HEADERS_RECEIVED > request->state) || 72 if ( (MHD_REQUEST_HEADERS_RECEIVED > request->state) ||
73 (MHD_REQUEST_CLOSED == request->state) ) 73 (MHD_REQUEST_CLOSED == request->state) )
74 return MHD_NO; /* invalid, too early! */ 74 return MHD_NO; /* invalid, too early! */
75 return_value->header_size = request->header_size; 75 return_value->header_size = request->header_size;
76 return MHD_YES; 76 return MHD_YES;
77 77