projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a88b38
)
fix
author
Christian Grothoff
<christian@grothoff.org>
Tue, 18 Oct 2011 07:53:14 +0000
(07:53 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 18 Oct 2011 07:53:14 +0000
(07:53 +0000)
src/ats/ats_api_scheduling.c
patch
|
blob
|
history
diff --git
a/src/ats/ats_api_scheduling.c
b/src/ats/ats_api_scheduling.c
index c2280f70b58565268b6f0ea3cf508894a69cf90e..b61d320a7ab868e8518e061c861a72e282df9e1e 100644
(file)
--- 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)));