[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11156 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11156 - gnunet/src/fs |
Date: |
Mon, 3 May 2010 11:03:08 +0200 |
Author: grothoff
Date: 2010-05-03 11:03:08 +0200 (Mon, 03 May 2010)
New Revision: 11156
Modified:
gnunet/src/fs/fs_download.c
Log:
fix
Modified: gnunet/src/fs/fs_download.c
===================================================================
--- gnunet/src/fs/fs_download.c 2010-05-03 08:48:06 UTC (rev 11155)
+++ gnunet/src/fs/fs_download.c 2010-05-03 09:03:08 UTC (rev 11156)
@@ -826,6 +826,8 @@
{
struct ProcessResultClosure *prc = cls;
struct DownloadRequest *sm = value;
+ struct DownloadRequest *ppos;
+ struct DownloadRequest *pprev;
struct GNUNET_FS_DownloadContext *dc = prc->dc;
struct GNUNET_CRYPTO_AesSessionKey skey;
struct GNUNET_CRYPTO_AesInitializationVector iv;
@@ -869,6 +871,22 @@
GNUNET_CONTAINER_multihashmap_remove (dc->active,
&prc->query,
sm));
+ /* if this request is on the pending list, remove it! */
+ pprev = NULL;
+ ppos = dc->pending;
+ while (ppos != NULL)
+ {
+ if (ppos == sm)
+ {
+ if (pprev == NULL)
+ dc->pending = ppos->next;
+ else
+ pprev->next = ppos->next;
+ break;
+ }
+ pprev = ppos;
+ ppos = ppos->next;
+ }
GNUNET_CRYPTO_hash_to_aes_key (&sm->chk.key, &skey, &iv);
GNUNET_CRYPTO_aes_decrypt (prc->data,
prc->size,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11156 - gnunet/src/fs,
gnunet <=