fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 12 Oct 2011 12:51:34 +0000 (12:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 12 Oct 2011 12:51:34 +0000 (12:51 +0000)
src/core/gnunet-service-core_sessions.c

index 0e555978657ee648c19f8194b2320815d22900ef..ea6fc234fb52e77f1c71c96d80f7258a50451012 100644 (file)
@@ -343,7 +343,12 @@ GSC_SESSIONS_dequeue_request (struct GSC_ClientActiveRequest *car)
 {
   struct Session *s;
 
-  s = find_session (&car->target);
+  if (0 == memcmp (&car->target,
+                  &GSC_my_identity,
+                  sizeof (struct GNUNET_PeerIdentity)))
+    return;
+  s = find_session (&car->target);  
+  GNUNET_assert (NULL != s);
   GNUNET_CONTAINER_DLL_remove (s->active_client_request_head,
                                s->active_client_request_tail, car);
 }