diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-07-23 22:58:20 +0200 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-07-23 22:58:20 +0200 |
commit | 4336c9fddab44104eef6a480f354a92b6befa255 (patch) | |
tree | d6dd63423ed2667e4cce9c8d8b55d0acf57bd64c /src/reclaim/plugin_rest_openid_connect.c | |
parent | 94c9fde8f4136432bb4cbc99ba5102702279df14 (diff) | |
download | gnunet-4336c9fddab44104eef6a480f354a92b6befa255.tar.gz gnunet-4336c9fddab44104eef6a480f354a92b6befa255.zip |
fix wrong record type
Diffstat (limited to 'src/reclaim/plugin_rest_openid_connect.c')
-rw-r--r-- | src/reclaim/plugin_rest_openid_connect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c index 99459427c..24673c692 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/reclaim/plugin_rest_openid_connect.c | |||
@@ -895,10 +895,12 @@ lookup_redirect_uri_result (void *cls, | |||
895 | } | 895 | } |
896 | for (int i = 0; i < rd_count; i++) | 896 | for (int i = 0; i < rd_count; i++) |
897 | { | 897 | { |
898 | if (0 != strcmp (rd[0].data, | 898 | if (GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT != rd[i].record_type) |
899 | continue; | ||
900 | if (0 != strcmp (rd[i].data, | ||
899 | handle->oidc->redirect_uri)) | 901 | handle->oidc->redirect_uri)) |
900 | continue; | 902 | continue; |
901 | tmp = GNUNET_strdup (rd[0].data); | 903 | tmp = GNUNET_strdup (rd[i].data); |
902 | pos = strrchr (tmp, | 904 | pos = strrchr (tmp, |
903 | (unsigned char) '.'); | 905 | (unsigned char) '.'); |
904 | *pos = '\0'; | 906 | *pos = '\0'; |