diff options
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
269 | GNUNET_break (0); | 269 | GNUNET_break (0); |
270 | return NULL; | 270 | return NULL; |
271 | } | 271 | } |
272 | if (session_id == 0) | ||
273 | return NULL; | ||
272 | GNUNET_assert (0 == memcmp (peer, | 274 | GNUNET_assert (0 == memcmp (peer, |
273 | &sh->session_array[session_id].peer, | 275 | &sh->session_array[session_id].peer, |
274 | sizeof (struct GNUNET_PeerIdentity))); | 276 | sizeof (struct GNUNET_PeerIdentity))); |