diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-09-15 14:04:54 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-09-15 14:04:54 +0000 |
commit | 84df54a9f2aa5a81883cd789da311c627d338fb0 (patch) | |
tree | 60eb6d12deaefe9076f2e5b009a9020c0d39ac00 /src/rest | |
parent | 34da67bc38727903c39136db9e17a804f172f3b7 (diff) | |
download | gnunet-84df54a9f2aa5a81883cd789da311c627d338fb0.tar.gz gnunet-84df54a9f2aa5a81883cd789da311c627d338fb0.zip |
- fixes, store issued tokens in namestore
Diffstat (limited to 'src/rest')
-rw-r--r-- | src/rest/rest.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/rest/rest.c b/src/rest/rest.c index d04bfdee1..cc3a318c2 100644 --- a/src/rest/rest.c +++ b/src/rest/rest.c | |||
@@ -435,14 +435,7 @@ GNUNET_REST_jsonapi_data_serialize (const struct JsonApiObject *resp, | |||
435 | int | 435 | int |
436 | GNUNET_REST_namespace_match (const char *url, const char *namespace) | 436 | GNUNET_REST_namespace_match (const char *url, const char *namespace) |
437 | { | 437 | { |
438 | if (0 != strncmp (namespace, url, strlen (namespace))) | 438 | return 0 == strncmp (namespace, url, strlen (namespace)); |
439 | return GNUNET_NO; | ||
440 | |||
441 | if ((strlen (namespace) < strlen (url)) && | ||
442 | (url[strlen (namespace)] != '/')) | ||
443 | return GNUNET_NO; | ||
444 | |||
445 | return GNUNET_YES; | ||
446 | } | 439 | } |
447 | 440 | ||
448 | /** | 441 | /** |