fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 18 Oct 2011 07:53:14 +0000 (07:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 18 Oct 2011 07:53:14 +0000 (07:53 +0000)
src/ats/ats_api_scheduling.c

index c2280f70b58565268b6f0ea3cf508894a69cf90e..b61d320a7ab868e8518e061c861a72e282df9e1e 100644 (file)
@@ -269,6 +269,8 @@ find_session (struct GNUNET_ATS_SchedulingHandle *sh,
     GNUNET_break (0);
     return NULL;
   }
+  if (session_id == 0)
+    return NULL;
   GNUNET_assert (0 == memcmp (peer,
                              &sh->session_array[session_id].peer,
                              sizeof (struct GNUNET_PeerIdentity)));