diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-11 14:39:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-11 14:39:20 +0000 |
commit | 471b156c8bbd7d9f9ba2aae6637d6354a39a9153 (patch) | |
tree | 3e78f7cb10da0d802637c1ced251c5b263282cd8 /src/namestore/gnunet-namestore.c | |
parent | 1645fa570bf1b3835616eaebf6c45e18626f4a5d (diff) | |
download | gnunet-471b156c8bbd7d9f9ba2aae6637d6354a39a9153.tar.gz gnunet-471b156c8bbd7d9f9ba2aae6637d6354a39a9153.zip |
-add extra checks
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r-- | src/namestore/gnunet-namestore.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 222ccf89a..6a66b1319 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -424,7 +424,7 @@ get_existing_record (void *cls, | |||
424 | rde->flags |= GNUNET_NAMESTORE_RF_AUTHORITY; | 424 | rde->flags |= GNUNET_NAMESTORE_RF_AUTHORITY; |
425 | if (1 != public) | 425 | if (1 != public) |
426 | rde->flags |= GNUNET_NAMESTORE_RF_PRIVATE; | 426 | rde->flags |= GNUNET_NAMESTORE_RF_PRIVATE; |
427 | 427 | GNUNET_assert (NULL != name); | |
428 | add_qe = GNUNET_NAMESTORE_record_put_by_authority (ns, | 428 | add_qe = GNUNET_NAMESTORE_record_put_by_authority (ns, |
429 | zone_pkey, | 429 | zone_pkey, |
430 | name, | 430 | name, |
@@ -630,13 +630,13 @@ testservice_task (void *cls, | |||
630 | if (NULL != uri) | 630 | if (NULL != uri) |
631 | { | 631 | { |
632 | char sh[53]; | 632 | char sh[53]; |
633 | char name[64]; | 633 | char sname[64]; |
634 | struct GNUNET_CRYPTO_ShortHashCode sc; | 634 | struct GNUNET_CRYPTO_ShortHashCode sc; |
635 | 635 | ||
636 | if ( (2 != (sscanf (uri, | 636 | if ( (2 != (sscanf (uri, |
637 | "gnunet://gns/%52s/%63s", | 637 | "gnunet://gns/%52s/%63s", |
638 | sh, | 638 | sh, |
639 | name)) ) || | 639 | sname)) ) || |
640 | (GNUNET_OK != | 640 | (GNUNET_OK != |
641 | GNUNET_CRYPTO_short_hash_from_string (sh, &sc)) ) | 641 | GNUNET_CRYPTO_short_hash_from_string (sh, &sc)) ) |
642 | { | 642 | { |
@@ -664,7 +664,7 @@ testservice_task (void *cls, | |||
664 | rd.flags |= GNUNET_NAMESTORE_RF_AUTHORITY; | 664 | rd.flags |= GNUNET_NAMESTORE_RF_AUTHORITY; |
665 | add_qe_uri = GNUNET_NAMESTORE_record_put_by_authority (ns, | 665 | add_qe_uri = GNUNET_NAMESTORE_record_put_by_authority (ns, |
666 | zone_pkey, | 666 | zone_pkey, |
667 | name, | 667 | sname, |
668 | 1, | 668 | 1, |
669 | &rd, | 669 | &rd, |
670 | &add_continuation, | 670 | &add_continuation, |