diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-17 09:40:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-17 09:40:24 +0000 |
commit | 710709c0d4eaa001fa185b5b72972666cb64f926 (patch) | |
tree | 36adfe8dc9ca34d26644276ad5f3f83d2cf66a84 /src/ats | |
parent | c0d32e08cddf59b933cecd744c6cd582ec566694 (diff) | |
download | gnunet-710709c0d4eaa001fa185b5b72972666cb64f926.tar.gz gnunet-710709c0d4eaa001fa185b5b72972666cb64f926.zip |
fix segv
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 4855efadb..d35d1bfe0 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -224,6 +224,8 @@ do_transmit (struct GNUNET_ATS_SchedulingHandle *sh) | |||
224 | return; | 224 | return; |
225 | if (NULL == (p = sh->pending_head)) | 225 | if (NULL == (p = sh->pending_head)) |
226 | return; | 226 | return; |
227 | if (NULL == sh->client) | ||
228 | return; /* currently reconnecting */ | ||
227 | sh->th = GNUNET_CLIENT_notify_transmit_ready (sh->client, | 229 | sh->th = GNUNET_CLIENT_notify_transmit_ready (sh->client, |
228 | p->size, | 230 | p->size, |
229 | GNUNET_TIME_UNIT_FOREVER_REL, | 231 | GNUNET_TIME_UNIT_FOREVER_REL, |