diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-01-24 12:30:41 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-01-24 12:30:41 +0100 |
commit | 476fe5a3403704f698edcc660a7073860d6fa4f3 (patch) | |
tree | 293df2504024e4929b2f45bb25a3100e9bc7ee7a /src/rest-plugins | |
parent | 546f01e2008e79b6774fd69116f1387bc6ee0409 (diff) | |
download | gnunet-476fe5a3403704f698edcc660a7073860d6fa4f3.tar.gz gnunet-476fe5a3403704f698edcc660a7073860d6fa4f3.zip |
fix strcmp
Diffstat (limited to 'src/rest-plugins')
-rw-r--r-- | src/rest-plugins/plugin_rest_openid_connect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rest-plugins/plugin_rest_openid_connect.c b/src/rest-plugins/plugin_rest_openid_connect.c index 9124de7ff..1824ec430 100644 --- a/src/rest-plugins/plugin_rest_openid_connect.c +++ b/src/rest-plugins/plugin_rest_openid_connect.c | |||
@@ -1136,8 +1136,9 @@ lookup_redirect_uri_result (void *cls, | |||
1136 | { | 1136 | { |
1137 | if (GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT != rd[i].record_type) | 1137 | if (GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT != rd[i].record_type) |
1138 | continue; | 1138 | continue; |
1139 | if (0 != strcmp (rd[i].data, | 1139 | if (0 != strncmp (rd[i].data, |
1140 | handle->oidc->redirect_uri)) | 1140 | handle->oidc->redirect_uri, |
1141 | rd[i].data_size)) | ||
1141 | continue; | 1142 | continue; |
1142 | tmp = GNUNET_strdup (rd[i].data); | 1143 | tmp = GNUNET_strdup (rd[i].data); |
1143 | pos = strrchr (tmp, | 1144 | pos = strrchr (tmp, |