[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: - various return value assertions
From: |
gnunet |
Subject: |
[gnunet] branch master updated: - various return value assertions |
Date: |
Sat, 01 Oct 2022 04:07:09 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 5c9108a6c - various return value assertions
5c9108a6c is described below
commit 5c9108a6c08ee6d242cd797d9b0232bbc8ee48df
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sat Oct 1 11:07:03 2022 +0900
- various return value assertions
---
src/reclaim/plugin_rest_openid_connect.c | 6 +++---
src/rest/gnunet-rest-server.c | 16 ++++++++--------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/reclaim/plugin_rest_openid_connect.c
b/src/reclaim/plugin_rest_openid_connect.c
index 7ab603768..7bb249c68 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -682,9 +682,9 @@ do_error (void *cls)
MHD_add_response_header (resp,
MHD_HTTP_HEADER_WWW_AUTHENTICATE,
"Basic"));
- MHD_add_response_header (resp,
- MHD_HTTP_HEADER_CONTENT_TYPE,
- "application/json");
+ GNUNET_assert (MHD_NO != MHD_add_response_header (resp,
+
MHD_HTTP_HEADER_CONTENT_TYPE,
+ "application/json"));
handle->proc (handle->proc_cls, resp, handle->response_code);
cleanup_handle (handle);
GNUNET_free (json_error);
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
index 0aba52a11..b3ca6382a 100644
--- a/src/rest/gnunet-rest-server.c
+++ b/src/rest/gnunet-rest-server.c
@@ -602,9 +602,9 @@ create_response (void *cls,
origin,
strlen ("chrome-extension://"))))
{
- MHD_add_response_header (con_handle->response,
+ GNUNET_assert (MHD_NO != MHD_add_response_header (con_handle->response,
MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
- origin);
+ origin));
}
}
if (NULL != allow_origins)
@@ -615,9 +615,9 @@ create_response (void *cls,
{
if (0 == strncmp (allow_origin, origin, strlen (allow_origin)))
{
- MHD_add_response_header (con_handle->response,
+ GNUNET_assert (MHD_NO != MHD_add_response_header
(con_handle->response,
MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
- allow_origin);
+ allow_origin));
break;
}
allow_origin = strtok (NULL, ",");
@@ -627,15 +627,15 @@ create_response (void *cls,
}
if (NULL != allow_credentials)
{
- MHD_add_response_header (con_handle->response,
+ GNUNET_assert (MHD_NO != MHD_add_response_header (con_handle->response,
"Access-Control-Allow-Credentials",
- allow_credentials);
+ allow_credentials));
}
if (NULL != allow_headers)
{
- MHD_add_response_header (con_handle->response,
+ GNUNET_assert (MHD_NO != MHD_add_response_header (con_handle->response,
"Access-Control-Allow-Headers",
- allow_headers);
+ allow_headers));
}
run_mhd_now ();
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: - various return value assertions,
gnunet <=