From: Schanzenbach, Martin Date: Thu, 24 Jan 2019 11:30:41 +0000 (+0100) Subject: fix strcmp X-Git-Tag: v0.11.0~136 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=476fe5a3403704f698edcc660a7073860d6fa4f3;p=oweals%2Fgnunet.git fix strcmp --- 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, { 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,