diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-18 07:46:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-18 07:46:37 +0000 |
commit | 7a88b388441434169681d0abedee12ec308570ed (patch) | |
tree | deedf142019f77372a62e4cbbc4c0e20ee59bbb6 /src/ats | |
parent | 46db19f996978187a3e596188465b41ca0706318 (diff) | |
download | gnunet-7a88b388441434169681d0abedee12ec308570ed.tar.gz gnunet-7a88b388441434169681d0abedee12ec308570ed.zip |
fix
Diffstat (limited to 'src/ats')
-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 a6eeb8576..c2280f70b 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -293,6 +293,8 @@ get_session_id (struct GNUNET_ATS_SchedulingHandle *sh, | |||
293 | unsigned int i; | 293 | unsigned int i; |
294 | unsigned int f; | 294 | unsigned int f; |
295 | 295 | ||
296 | if (NULL == session) | ||
297 | return 0; | ||
296 | f = 0; | 298 | f = 0; |
297 | for (i=1;i<sh->session_array_size;i++) | 299 | for (i=1;i<sh->session_array_size;i++) |
298 | { | 300 | { |