diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-14 13:01:16 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-14 13:01:16 +0000 |
commit | 5ff59921219b54bac1608debc0c53118e539ba57 (patch) | |
tree | 6abbf5b356bca6ba6df2f32443503959bf341f7b /src | |
parent | f8676628e5fb812d68e1468dbc6d115dc641ffbf (diff) | |
download | gnunet-5ff59921219b54bac1608debc0c53118e539ba57.tar.gz gnunet-5ff59921219b54bac1608debc0c53118e539ba57.zip |
- fix
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 2 | ||||
-rw-r--r-- | src/namestore/namestore_api.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 5a0206726..dc81ccea3 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -1239,7 +1239,7 @@ handle_zone_to_name_it (void *cls, | |||
1239 | /* found result */ | 1239 | /* found result */ |
1240 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Found results: name is `%s', has %u records\n", name, rd_count); | 1240 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Found results: name is `%s', has %u records\n", name, rd_count); |
1241 | res = GNUNET_YES; | 1241 | res = GNUNET_YES; |
1242 | name_len = strlen (name); | 1242 | name_len = strlen (name) +1; |
1243 | } | 1243 | } |
1244 | else | 1244 | else |
1245 | { | 1245 | { |
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 2a70d7612..316b0f40d 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -477,7 +477,8 @@ handle_zone_to_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe, | |||
477 | expire = GNUNET_TIME_absolute_ntoh(msg->expire); | 477 | expire = GNUNET_TIME_absolute_ntoh(msg->expire); |
478 | 478 | ||
479 | name_tmp = (char *) &msg[1]; | 479 | name_tmp = (char *) &msg[1]; |
480 | GNUNET_assert ('\0' == name_tmp[name_len]); | 480 | GNUNET_assert ('\0' == name_tmp[name_len -1]); |
481 | GNUNET_assert (name_len -1 == strlen(name_tmp)); | ||
481 | rd_tmp = &name_tmp[name_len]; | 482 | rd_tmp = &name_tmp[name_len]; |
482 | 483 | ||
483 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; | 484 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; |