From b6f0365dd1cf3fbd6af64500cf9547583989e68b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Mar 2011 15:20:40 +0000 Subject: communicate content already present better --- src/datastore/gnunet-service-datastore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/datastore') 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); -- cgit v1.2.3