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

index 34601ffc7cf436ebb786759cd9cc07345226b581..e625749187f789514efaef69b09489a2cb08dee2 100644 (file)
@@ -313,7 +313,7 @@ get_session_id (struct GNUNET_ATS_SchedulingHandle *sh,
       return i;
     }
     if ( (f == 0) &&
-        (sh->session_array[i].session == NULL) )
+        (sh->session_array[i].slot_used == GNUNET_NO) )
       f = i;
   }
   if (f == 0)