From 471b156c8bbd7d9f9ba2aae6637d6354a39a9153 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 11 Jul 2013 14:39:20 +0000 Subject: [PATCH] -add extra checks --- src/namestore/gnunet-namestore.c | 8 ++++---- 1 file 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, rde->flags |= GNUNET_NAMESTORE_RF_AUTHORITY; if (1 != public) rde->flags |= GNUNET_NAMESTORE_RF_PRIVATE; - + GNUNET_assert (NULL != name); add_qe = GNUNET_NAMESTORE_record_put_by_authority (ns, zone_pkey, name, @@ -630,13 +630,13 @@ testservice_task (void *cls, if (NULL != uri) { char sh[53]; - char name[64]; + char sname[64]; struct GNUNET_CRYPTO_ShortHashCode sc; if ( (2 != (sscanf (uri, "gnunet://gns/%52s/%63s", sh, - name)) ) || + sname)) ) || (GNUNET_OK != GNUNET_CRYPTO_short_hash_from_string (sh, &sc)) ) { @@ -664,7 +664,7 @@ testservice_task (void *cls, rd.flags |= GNUNET_NAMESTORE_RF_AUTHORITY; add_qe_uri = GNUNET_NAMESTORE_record_put_by_authority (ns, zone_pkey, - name, + sname, 1, &rd, &add_continuation, -- 2.25.1