From: Christian Grothoff Date: Thu, 1 Apr 2010 09:41:57 +0000 (+0000) Subject: fixes X-Git-Tag: initial-import-from-subversion-38251~22333 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f380532bffbb746ecc8ebbed49fb96cf6c3928d4;p=oweals%2Fgnunet.git fixes --- diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 46759f495..342299e4f 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -529,15 +529,15 @@ process_result_with_request (void *cls, &skey, &iv, pt); + off = compute_disk_offset (GNUNET_ntohll (dc->uri->data.chk.file_length), + sm->offset, + sm->depth, + dc->treedepth); /* save to disk */ if ( (NULL != dc->handle) && ( (sm->depth == dc->treedepth) || (0 == (dc->options & GNUNET_FS_DOWNLOAD_NO_TEMPORARIES)) ) ) { - off = compute_disk_offset (GNUNET_ntohll (dc->uri->data.chk.file_length), - sm->offset, - sm->depth, - dc->treedepth); emsg = NULL; #if DEBUG_DOWNLOAD GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index c040bad76..873494c4f 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c @@ -234,6 +234,7 @@ GNUNET_FS_namespace_create (struct GNUNET_FS_Handle *h, dn, DIR_SEPARATOR_STR, name); + GNUNET_free (dn); ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace)); ret->rc = 1; ret->key = GNUNET_CRYPTO_rsa_key_create_from_file (fn); diff --git a/src/fs/gnunet-pseudonym.c b/src/fs/gnunet-pseudonym.c index b8bd12b35..b0b53c925 100644 --- a/src/fs/gnunet-pseudonym.c +++ b/src/fs/gnunet-pseudonym.c @@ -205,10 +205,9 @@ post_advertising (void *cls, rating_change, &nsid)) { - GNUNET_PSEUDONYM_rank (cfg, - &nsid, - delta); - + (void) GNUNET_PSEUDONYM_rank (cfg, + &nsid, + delta); } else { @@ -310,6 +309,7 @@ run (void *cls, GNUNET_FS_PUBLISH_OPTION_NONE, &post_advertising, NULL); + GNUNET_FS_uri_destroy (ns_uri); return; } } diff --git a/src/fs/test_fs_namespace.c b/src/fs/test_fs_namespace.c index 9e02521a8..2f3aabbf6 100644 --- a/src/fs/test_fs_namespace.c +++ b/src/fs/test_fs_namespace.c @@ -259,6 +259,7 @@ publish_cont (void *cls, msg); err = 1; GNUNET_FS_stop (fs); + GNUNET_free (msg); return; } fprintf (stderr, "Starting keyword search...\n"); diff --git a/src/transport/transport_api_address_lookup.c b/src/transport/transport_api_address_lookup.c index cd2e73584..689e553b3 100644 --- a/src/transport/transport_api_address_lookup.c +++ b/src/transport/transport_api_address_lookup.c @@ -167,12 +167,13 @@ GNUNET_TRANSPORT_address_lookup (struct GNUNET_SCHEDULER_Handle *sched, aluCB->cb_cls = aluc_cls; aluCB->timeout = abs_timeout; aluCB->client = client; - GNUNET_CLIENT_transmit_and_get_response (client, - &msg->header, - timeout, - GNUNET_YES, - &address_response_processor, - aluCB); + GNUNET_assert (GNUNET_OK == + GNUNET_CLIENT_transmit_and_get_response (client, + &msg->header, + timeout, + GNUNET_YES, + &address_response_processor, + aluCB)); GNUNET_free (msg); }