check return value from MHD_add_response_header()
This commit is contained in:
parent
b0ba819cf4
commit
51647e6259
@ -112,9 +112,15 @@ TEH_MHD_handler_agpl_redirect (struct TEH_RequestHandler *rh,
|
|||||||
(void) MHD_add_response_header (response,
|
(void) MHD_add_response_header (response,
|
||||||
MHD_HTTP_HEADER_CONTENT_TYPE,
|
MHD_HTTP_HEADER_CONTENT_TYPE,
|
||||||
rh->mime_type);
|
rh->mime_type);
|
||||||
MHD_add_response_header (response,
|
if (MHD_NO ==
|
||||||
MHD_HTTP_HEADER_LOCATION,
|
MHD_add_response_header (response,
|
||||||
"http://www.git.taler.net/?p=exchange.git");
|
MHD_HTTP_HEADER_LOCATION,
|
||||||
|
"http://www.git.taler.net/?p=exchange.git"))
|
||||||
|
{
|
||||||
|
GNUNET_break (0);
|
||||||
|
MHD_destroy_response (response);
|
||||||
|
return MHD_NO;
|
||||||
|
}
|
||||||
ret = MHD_queue_response (connection,
|
ret = MHD_queue_response (connection,
|
||||||
rh->response_code,
|
rh->response_code,
|
||||||
response);
|
response);
|
||||||
|
Loading…
Reference in New Issue
Block a user