commit 476fe5a3403704f698edcc660a7073860d6fa4f3
parent 546f01e2008e79b6774fd69116f1387bc6ee0409
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
Date: Thu, 24 Jan 2019 12:30:41 +0100
fix strcmp
Diffstat:
1 file 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
@@ -1136,8 +1136,9 @@ lookup_redirect_uri_result (void *cls,
{
if (GNUNET_GNSRECORD_TYPE_RECLAIM_OIDC_REDIRECT != rd[i].record_type)
continue;
- if (0 != strcmp (rd[i].data,
- handle->oidc->redirect_uri))
+ if (0 != strncmp (rd[i].data,
+ handle->oidc->redirect_uri,
+ rd[i].data_size))
continue;
tmp = GNUNET_strdup (rd[i].data);
pos = strrchr (tmp,