From: Christian Grothoff Date: Tue, 2 Feb 2010 13:15:00 +0000 (+0000) Subject: fixes X-Git-Tag: initial-import-from-subversion-38251~22806 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f41f06773f179cb56f719c8a1467e8574c57a38;p=oweals%2Fgnunet.git fixes --- diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index 02ddb2a0d..cbdb9193b 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c @@ -792,12 +792,13 @@ hash_for_index_cb (void *cls, p->data.file.filename, slen); sc->client = client; - GNUNET_CLIENT_transmit_and_get_response (client, - &ism->header, - GNUNET_TIME_UNIT_FOREVER_REL, - GNUNET_YES, - &process_index_start_response, - sc); + GNUNET_break (GNUNET_YES == + GNUNET_CLIENT_transmit_and_get_response (client, + &ism->header, + GNUNET_TIME_UNIT_FOREVER_REL, + GNUNET_YES, + &process_index_start_response, + sc)); GNUNET_free (ism); } diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index 243209b0e..7ce8b3f18 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c @@ -373,12 +373,13 @@ process_hash (void *cls, req.header.type = htons (GNUNET_MESSAGE_TYPE_FS_UNINDEX); req.reserved = 0; req.file_id = *file_id; - GNUNET_CLIENT_transmit_and_get_response (uc->client, - &req.header, - GNUNET_CONSTANTS_SERVICE_TIMEOUT, - GNUNET_YES, - &process_fs_response, - uc); + GNUNET_break (GNUNET_OK == + GNUNET_CLIENT_transmit_and_get_response (uc->client, + &req.header, + GNUNET_CONSTANTS_SERVICE_TIMEOUT, + GNUNET_YES, + &process_fs_response, + uc)); } diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index 72203fa7a..de569f7ca 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c @@ -354,6 +354,8 @@ GNUNET_FS_handle_index_start (void *cls, memcpy (&ii[1], fn, slen); ii->file_id = ism->file_id; ii->tc = GNUNET_SERVER_transmit_context_create (client); + mydev = 0; + myino = 0; if ( ( (dev != 0) || (ino != 0) ) && (GNUNET_OK == GNUNET_DISK_file_get_identifiers (fn,