diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-15 16:17:32 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-15 16:17:32 +0200 |
commit | 765fa87ed79537ec7ea497bc670200e09aa20e0d (patch) | |
tree | ac28ab289e8a438b5d65d258fad957f2393b8714 /src/reclaim | |
parent | b030e5cc9520fc55a487d245b71db43157c6b4a1 (diff) | |
download | gnunet-765fa87ed79537ec7ea497bc670200e09aa20e0d.tar.gz gnunet-765fa87ed79537ec7ea497bc670200e09aa20e0d.zip |
-coverity
Diffstat (limited to 'src/reclaim')
-rw-r--r-- | src/reclaim/plugin_rest_openid_connect.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c index 88b928526..1c00abcbd 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/reclaim/plugin_rest_openid_connect.c | |||
@@ -656,7 +656,10 @@ do_error (void *cls) | |||
656 | handle->response_code = MHD_HTTP_BAD_REQUEST; | 656 | handle->response_code = MHD_HTTP_BAD_REQUEST; |
657 | resp = GNUNET_REST_create_response (json_error); | 657 | resp = GNUNET_REST_create_response (json_error); |
658 | if (MHD_HTTP_UNAUTHORIZED == handle->response_code) | 658 | if (MHD_HTTP_UNAUTHORIZED == handle->response_code) |
659 | MHD_add_response_header (resp, MHD_HTTP_HEADER_WWW_AUTHENTICATE, "Basic"); | 659 | GNUNET_assert (MHD_NO != |
660 | MHD_add_response_header (resp, | ||
661 | MHD_HTTP_HEADER_WWW_AUTHENTICATE, | ||
662 | "Basic")); | ||
660 | MHD_add_response_header (resp, | 663 | MHD_add_response_header (resp, |
661 | MHD_HTTP_HEADER_CONTENT_TYPE, | 664 | MHD_HTTP_HEADER_CONTENT_TYPE, |
662 | "application/json"); | 665 | "application/json"); |