aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-18 07:53:14 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-18 07:53:14 +0000
commit6e191c3f0ecc7960c9473ac9ee4e1c62d4667ab0 (patch)
tree4bb128b510e18aa7be96358f383fb302b1b612d3 /src/ats
parent7a88b388441434169681d0abedee12ec308570ed (diff)
downloadgnunet-6e191c3f0ecc7960c9473ac9ee4e1c62d4667ab0.tar.gz
gnunet-6e191c3f0ecc7960c9473ac9ee4e1c62d4667ab0.zip
fix
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 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)));