aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-20 11:12:35 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-20 11:12:35 +0000
commit433863abab5292f6a0b551f45ffdc9319ed4facd (patch)
tree6d23ad6c20748dda6296c60c55cce9d7b872b2c7 /src/ats
parent23b902a435b1dcb78c3c7c50c5c30cc65c70c4ae (diff)
downloadgnunet-433863abab5292f6a0b551f45ffdc9319ed4facd.tar.gz
gnunet-433863abab5292f6a0b551f45ffdc9319ed4facd.zip
not for 0
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/ats_api_scheduling.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index 955b21286..075d776e5 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -344,6 +344,8 @@ remove_session (struct GNUNET_ATS_SchedulingHandle *sh,
344 uint32_t session_id, 344 uint32_t session_id,
345 const struct GNUNET_PeerIdentity *peer) 345 const struct GNUNET_PeerIdentity *peer)
346{ 346{
347 if (0 == session_id)
348 return;
347 GNUNET_assert (session_id < sh->session_array_size); 349 GNUNET_assert (session_id < sh->session_array_size);
348 GNUNET_assert (GNUNET_YES == sh->session_array[session_id].slot_used); 350 GNUNET_assert (GNUNET_YES == sh->session_array[session_id].slot_used);
349 GNUNET_assert (0 == memcmp (peer, 351 GNUNET_assert (0 == memcmp (peer,