From 27ed8fcbc85a361864948edb517d47804c2b5a56 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 26 Apr 2011 18:19:15 +0000 Subject: datastore and fs fixes from Easter --- src/fs/gnunet-service-fs_cp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/fs/gnunet-service-fs_cp.c') diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 2522cbe7b..acad54501 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c @@ -704,9 +704,9 @@ copy_reply (void *cls, /** - * Free the given client request. + * Free the given request. * - * @param cls the client request to free + * @param cls the request to free * @param tc task context */ static void @@ -1182,6 +1182,7 @@ GSF_handle_p2p_query_ (const struct GNUNET_PeerIdentity *other, NULL, 0, /* replies_seen */ &handle_p2p_reply, peerreq); + GNUNET_assert (NULL != pr); peerreq->pr = pr; GNUNET_break (GNUNET_OK == GNUNET_CONTAINER_multihashmap_put (cp->request_map, @@ -1427,7 +1428,7 @@ cancel_pending_request (void *cls, const GNUNET_HashCode *query, void *value) { - struct PeerRequest *peerreq = cls; + struct PeerRequest *peerreq = value; struct GSF_PendingRequest *pr = peerreq->pr; GSF_pending_request_cancel_ (pr); -- cgit v1.2.3