[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10413 - GNUnet/src/applications/fs/gap
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10413 - GNUnet/src/applications/fs/gap |
Date: |
Tue, 23 Feb 2010 09:27:50 +0100 |
Author: grothoff
Date: 2010-02-23 09:27:50 +0100 (Tue, 23 Feb 2010)
New Revision: 10413
Modified:
GNUnet/src/applications/fs/gap/fs.c
Log:
fixing data loss bug #1542
Modified: GNUnet/src/applications/fs/gap/fs.c
===================================================================
--- GNUnet/src/applications/fs/gap/fs.c 2010-02-23 08:17:35 UTC (rev 10412)
+++ GNUnet/src/applications/fs/gap/fs.c 2010-02-23 08:27:50 UTC (rev 10413)
@@ -592,11 +592,7 @@
unsigned int size;
unsigned long long et;
GNUNET_CronTime now;
- int ret;
- int want_more;
- want_more = GNUNET_OK;
-
enc = NULL;
if (ntohl (value->type) == GNUNET_ECRS_BLOCKTYPE_ONDEMAND)
{
@@ -620,7 +616,7 @@
else
{
if (ntohl (value->type) == GNUNET_ECRS_BLOCKTYPE_KEYWORD)
- return want_more; /* expired KSK -- ignore! */
+ return GNUNET_YES; /* expired KSK -- ignore! */
/* indicate entry has expired */
et = -1;
}
@@ -634,9 +630,8 @@
msg->expiration = GNUNET_htonll (et);
memcpy (&msg[1], &value[1], size - sizeof (P2P_gap_reply_MESSAGE));
- ret =
- dv_api->dv_send (&original_msg->returnTo, &msg->header,
- htonl (original_msg->priority) * 2, et);
+ dv_api->dv_send (&original_msg->returnTo, &msg->header,
+ htonl (original_msg->priority) * 2, et);
if (stats != NULL)
{
stats->change (stat_dv_replies_sent, 1);
@@ -644,8 +639,7 @@
GNUNET_free_non_null (enc);
GNUNET_free (msg);
- return ret;
-
+ return GNUNET_OK;
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10413 - GNUnet/src/applications/fs/gap,
gnunet <=