From: Christian Grothoff Date: Thu, 31 Mar 2011 15:20:40 +0000 (+0000) Subject: communicate content already present better X-Git-Tag: initial-import-from-subversion-38251~18845 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b6f0365dd1cf3fbd6af64500cf9547583989e68b;p=oweals%2Fgnunet.git communicate content already present better --- diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index aedf94f38..82a1f3ded 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c @@ -972,7 +972,7 @@ execute_put (struct GNUNET_SERVER_Client *client, #endif } transmit_status (client, - (GNUNET_SYSERR == ret) ? GNUNET_SYSERR : GNUNET_OK, + ret, msg); GNUNET_free_non_null (msg); if (quota - reserved - cache_size < payload) @@ -1026,7 +1026,7 @@ check_present (void *cls, if (key == NULL) { if (pc->is_present == GNUNET_YES) - transmit_status (pc->client, GNUNET_OK, NULL); + transmit_status (pc->client, GNUNET_NO, NULL); else execute_put (pc->client, dm); GNUNET_SERVER_client_drop (pc->client);