From: Christian Grothoff Date: Tue, 18 Oct 2011 07:53:14 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~16440 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6e191c3f0ecc7960c9473ac9ee4e1c62d4667ab0;p=oweals%2Fgnunet.git fix --- diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index c2280f70b..b61d320a7 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c @@ -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)));