[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33711 - gnunet/src/peerstore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33711 - gnunet/src/peerstore |
Date: |
Tue, 17 Jun 2014 18:48:35 +0200 |
Author: otarabai
Date: 2014-06-17 18:48:34 +0200 (Tue, 17 Jun 2014)
New Revision: 33711
Modified:
gnunet/src/peerstore/peerstore_api.c
Log:
peerstore: fix
Modified: gnunet/src/peerstore/peerstore_api.c
===================================================================
--- gnunet/src/peerstore/peerstore_api.c 2014-06-17 16:24:35 UTC (rev
33710)
+++ gnunet/src/peerstore/peerstore_api.c 2014-06-17 16:48:34 UTC (rev
33711)
@@ -721,6 +721,13 @@
PEERSTORE_hash_key(record->sub_system,
record->peer, record->key, &keyhash);
wc = GNUNET_CONTAINER_multihashmap_get(h->watches, &keyhash);
+ if(NULL == wc)
+ {
+ LOG(GNUNET_ERROR_TYPE_ERROR,
+ _("Received a watch result for a non existing watch.\n"));
+ reconnect(h);
+ return;
+ }
if(NULL != wc->callback)
wc->callback(wc->callback_cls, record, NULL);
PEERSTORE_destroy_record(record);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33711 - gnunet/src/peerstore,
gnunet <=