From 6b4ba60da04f3fd799007b3f1890bf156a60d406 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Fri, 28 Sep 2018 08:33:58 +0200 Subject: [PATCH] fix --- src/rest-plugins/plugin_rest_openid_connect.c | 5 ----- src/rest-plugins/plugin_rest_reclaim.c | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rest-plugins/plugin_rest_openid_connect.c b/src/rest-plugins/plugin_rest_openid_connect.c index 6456458a6..2bb60efce 100644 --- a/src/rest-plugins/plugin_rest_openid_connect.c +++ b/src/rest-plugins/plugin_rest_openid_connect.c @@ -1381,7 +1381,6 @@ check_authorization (struct RequestHandle *handle, if (0 != strcmp ("Basic", credentials)) { handle->emsg=GNUNET_strdup("invalid_client"); - handle->edesc = GNUNET_strdup ("1"); handle->response_code = MHD_HTTP_UNAUTHORIZED; return GNUNET_SYSERR; } @@ -1389,7 +1388,6 @@ check_authorization (struct RequestHandle *handle, if (NULL == credentials) { handle->emsg=GNUNET_strdup("invalid_client"); - handle->edesc = GNUNET_strdup ("2"); handle->response_code = MHD_HTTP_UNAUTHORIZED; return GNUNET_SYSERR; } @@ -1408,7 +1406,6 @@ check_authorization (struct RequestHandle *handle, { GNUNET_free_non_null(basic_authorization); handle->emsg=GNUNET_strdup("invalid_client"); - handle->edesc = GNUNET_strdup ("Wrong username"); handle->response_code = MHD_HTTP_UNAUTHORIZED; return GNUNET_SYSERR; } @@ -1417,7 +1414,6 @@ check_authorization (struct RequestHandle *handle, { GNUNET_free_non_null(basic_authorization); handle->emsg=GNUNET_strdup("invalid_client"); - handle->edesc = GNUNET_strdup (client_id); handle->response_code = MHD_HTTP_UNAUTHORIZED; return GNUNET_SYSERR; } @@ -1431,7 +1427,6 @@ check_authorization (struct RequestHandle *handle, { GNUNET_free_non_null(basic_authorization); GNUNET_free(expected_pass); - handle->edesc = GNUNET_strdup (pass); handle->emsg=GNUNET_strdup("invalid_client"); handle->response_code = MHD_HTTP_UNAUTHORIZED; return GNUNET_SYSERR; diff --git a/src/rest-plugins/plugin_rest_reclaim.c b/src/rest-plugins/plugin_rest_reclaim.c index 208c7470e..ccc2d894b 100644 --- a/src/rest-plugins/plugin_rest_reclaim.c +++ b/src/rest-plugins/plugin_rest_reclaim.c @@ -587,6 +587,7 @@ add_attribute_cont (struct GNUNET_REST_RequestHandle *con_handle, return; } handle->idp = GNUNET_RECLAIM_connect (cfg); + exp = GNUNET_TIME_UNIT_HOURS; handle->idp_op = GNUNET_RECLAIM_attribute_store (handle->idp, identity_priv, attribute, -- 2.25.1