fix segv
authorChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 09:40:24 +0000 (09:40 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 09:40:24 +0000 (09:40 +0000)
src/ats/ats_api_scheduling.c

index 4855efadb0867a1b983ff4242c4f81e768aac15c..d35d1bfe06b1fce7e991daf668df7ed6809109c1 100644 (file)
@@ -224,6 +224,8 @@ do_transmit (struct GNUNET_ATS_SchedulingHandle *sh)
     return;
   if (NULL == (p = sh->pending_head))
     return;
+  if (NULL == sh->client)
+    return; /* currently reconnecting */
   sh->th = GNUNET_CLIENT_notify_transmit_ready (sh->client,
                                                p->size,
                                                GNUNET_TIME_UNIT_FOREVER_REL,