From: Christian Grothoff Date: Thu, 20 Oct 2011 11:12:35 +0000 (+0000) Subject: not for 0 X-Git-Tag: initial-import-from-subversion-38251~16384 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=433863abab5292f6a0b551f45ffdc9319ed4facd;p=oweals%2Fgnunet.git not for 0 --- 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, uint32_t session_id, const struct GNUNET_PeerIdentity *peer) { + if (0 == session_id) + return; GNUNET_assert (session_id < sh->session_array_size); GNUNET_assert (GNUNET_YES == sh->session_array[session_id].slot_used); GNUNET_assert (0 == memcmp (peer,