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

index a6eeb8576af927c6e139b2ae2305c476c82c8230..c2280f70b58565268b6f0ea3cf508894a69cf90e 100644 (file)
@@ -293,6 +293,8 @@ get_session_id (struct GNUNET_ATS_SchedulingHandle *sh,
   unsigned int i;
   unsigned int f;
   
+  if (NULL == session)
+    return 0;
   f = 0;
   for (i=1;i<sh->session_array_size;i++)
   {