diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-04 13:54:48 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-04 13:54:48 +0000 |
commit | 09c5ef053f8c990d32babf9b30c81c39abd5a45d (patch) | |
tree | 7a0aa9975aa2b2688d906174ed8efe3957c6ae9c /src/namestore | |
parent | ae717329acf1b14a336589dba7c11de0ffdad5d2 (diff) | |
download | gnunet-09c5ef053f8c990d32babf9b30c81c39abd5a45d.tar.gz gnunet-09c5ef053f8c990d32babf9b30c81c39abd5a45d.zip |
fix for lookup
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/gnunet-namestore.c | 4 | ||||
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index bbec0f3cd..205e65f82 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -419,6 +419,10 @@ get_existing_record (void *cls, | |||
419 | GNUNET_break (0); | 419 | GNUNET_break (0); |
420 | return; | 420 | return; |
421 | } | 421 | } |
422 | |||
423 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received %u records for name `%s'\n", | ||
424 | rd_count, rec_name); | ||
425 | |||
422 | memset (rdn, 0, sizeof (struct GNUNET_GNSRECORD_Data)); | 426 | memset (rdn, 0, sizeof (struct GNUNET_GNSRECORD_Data)); |
423 | memcpy (&rdn[1], rd, rd_count * sizeof (struct GNUNET_GNSRECORD_Data)); | 427 | memcpy (&rdn[1], rd, rd_count * sizeof (struct GNUNET_GNSRECORD_Data)); |
424 | /* FIXME: should add some logic to overwrite records if there | 428 | /* FIXME: should add some logic to overwrite records if there |
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 2353eadec..f793c50d7 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -656,6 +656,12 @@ handle_record_lookup (void *cls, | |||
656 | "Received `%s' message for name `%s'\n", | 656 | "Received `%s' message for name `%s'\n", |
657 | "NAMESTORE_RECORD_LOOKUP", name_tmp); | 657 | "NAMESTORE_RECORD_LOOKUP", name_tmp); |
658 | 658 | ||
659 | if (NULL == (client_lookup (client))) | ||
660 | { | ||
661 | GNUNET_break (0); | ||
662 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | ||
663 | return; | ||
664 | } | ||
659 | 665 | ||
660 | rlc.label = name_tmp; | 666 | rlc.label = name_tmp; |
661 | rlc.found = GNUNET_NO; | 667 | rlc.found = GNUNET_NO; |