diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-03-12 16:40:40 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-03-12 16:40:40 +0000 |
commit | 59f6e4b0c42486d16a370c3524b78d88ac7fbcbc (patch) | |
tree | f52438b2acf50382cf1edfe9194a65634d1baccc /src/rest/gnunet-rest-server.c | |
parent | 02a113da7aed6b497c13e955403b83c801ee95b4 (diff) | |
download | gnunet-59f6e4b0c42486d16a370c3524b78d88ac7fbcbc.tar.gz gnunet-59f6e4b0c42486d16a370c3524b78d88ac7fbcbc.zip |
-add identity REST, fixes
Diffstat (limited to 'src/rest/gnunet-rest-server.c')
-rw-r--r-- | src/rest/gnunet-rest-server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c index 77046d678..e2f1f5c57 100644 --- a/src/rest/gnunet-rest-server.c +++ b/src/rest/gnunet-rest-server.c | |||
@@ -597,7 +597,9 @@ load_plugin (void *cls, | |||
597 | libname); | 597 | libname); |
598 | return; | 598 | return; |
599 | } | 599 | } |
600 | GNUNET_CRYPTO_hash (plugin->name, strlen (plugin->name), &key); | 600 | GNUNET_assert (1 < strlen (plugin->name)); |
601 | GNUNET_assert ('/' == *plugin->name); | ||
602 | GNUNET_CRYPTO_hash (plugin->name+1, strlen (plugin->name+1), &key); | ||
601 | if (GNUNET_OK != GNUNET_CONTAINER_multihashmap_put (plugin_map, | 603 | if (GNUNET_OK != GNUNET_CONTAINER_multihashmap_put (plugin_map, |
602 | &key, | 604 | &key, |
603 | plugin, | 605 | plugin, |
@@ -608,7 +610,7 @@ load_plugin (void *cls, | |||
608 | libname); | 610 | libname); |
609 | return; | 611 | return; |
610 | } | 612 | } |
611 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 613 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
612 | "Loaded plugin `%s'\n", | 614 | "Loaded plugin `%s'\n", |
613 | libname); | 615 | libname); |
614 | } | 616 | } |