diff options
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'; |