diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 14:53:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 14:53:11 +0100 |
commit | 0244c0d86cd86e4cc90e0c112c6edeafdfb558c2 (patch) | |
tree | b534b32562883064a09d856f700995a2f1b5cc42 /src/dht/dht_api.c | |
parent | 7184623654f81c1ba557f8fa95a3086342b4af6b (diff) | |
download | gnunet-0244c0d86cd86e4cc90e0c112c6edeafdfb558c2.tar.gz gnunet-0244c0d86cd86e4cc90e0c112c6edeafdfb558c2.zip |
strcmp instead of memcmp
Diffstat (limited to 'src/dht/dht_api.c')
-rw-r--r-- | src/dht/dht_api.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index 070d248ed..ee208b50e 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -754,12 +754,25 @@ process_client_result (void *cls, | |||
754 | meta_length = | 754 | meta_length = |
755 | sizeof (struct GNUNET_PeerIdentity) * (get_path_length + put_path_length); | 755 | sizeof (struct GNUNET_PeerIdentity) * (get_path_length + put_path_length); |
756 | data_length = msize - meta_length; | 756 | data_length = msize - meta_length; |
757 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
758 | "Giving %u byte reply for %s to application\n", | ||
759 | (unsigned int) data_length, | ||
760 | GNUNET_h2s (key)); | ||
761 | put_path = (const struct GNUNET_PeerIdentity *) &crm[1]; | 757 | put_path = (const struct GNUNET_PeerIdentity *) &crm[1]; |
762 | get_path = &put_path[put_path_length]; | 758 | get_path = &put_path[put_path_length]; |
759 | { | ||
760 | char *pp; | ||
761 | char *gp; | ||
762 | |||
763 | gp = GNUNET_STRINGS_pp2s (get_path, | ||
764 | get_path_length); | ||
765 | pp = GNUNET_STRINGS_pp2s (put_path, | ||
766 | put_path_length); | ||
767 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
768 | "Giving %u byte reply for %s to application (GP: %s, PP: %s)\n", | ||
769 | (unsigned int) data_length, | ||
770 | GNUNET_h2s (key), | ||
771 | gp, | ||
772 | pp); | ||
773 | GNUNET_free (gp); | ||
774 | GNUNET_free (pp); | ||
775 | } | ||
763 | data = &get_path[get_path_length]; | 776 | data = &get_path[get_path_length]; |
764 | /* remember that we've seen this result */ | 777 | /* remember that we've seen this result */ |
765 | GNUNET_CRYPTO_hash (data, | 778 | GNUNET_CRYPTO_hash (data, |