diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-01-24 14:42:03 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-01-24 14:42:03 +0100 |
commit | 31a1df068442392cf7aa7ccd156ccd6c7a8716dd (patch) | |
tree | 451d15d7faa034a5c287498cfeb680ca6571a8e7 /src/rest-plugins | |
parent | 476fe5a3403704f698edcc660a7073860d6fa4f3 (diff) | |
download | gnunet-31a1df068442392cf7aa7ccd156ccd6c7a8716dd.tar.gz gnunet-31a1df068442392cf7aa7ccd156ccd6c7a8716dd.zip |
REST: fix oidc redirecto uri 0-terminator
Diffstat (limited to 'src/rest-plugins')
-rw-r--r-- | src/rest-plugins/plugin_rest_openid_connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rest-plugins/plugin_rest_openid_connect.c b/src/rest-plugins/plugin_rest_openid_connect.c index 1824ec430..d7c0b4977 100644 --- a/src/rest-plugins/plugin_rest_openid_connect.c +++ b/src/rest-plugins/plugin_rest_openid_connect.c | |||
@@ -1140,7 +1140,8 @@ lookup_redirect_uri_result (void *cls, | |||
1140 | handle->oidc->redirect_uri, | 1140 | handle->oidc->redirect_uri, |
1141 | rd[i].data_size)) | 1141 | rd[i].data_size)) |
1142 | continue; | 1142 | continue; |
1143 | tmp = GNUNET_strdup (rd[i].data); | 1143 | tmp = GNUNET_strndup (rd[i].data, |
1144 | rd[i].data_size); | ||
1144 | pos = strrchr (tmp, | 1145 | pos = strrchr (tmp, |
1145 | (unsigned char) '.'); | 1146 | (unsigned char) '.'); |
1146 | *pos = '\0'; | 1147 | *pos = '\0'; |