could be NULL
authorChristian Grothoff <christian@grothoff.org>
Fri, 14 Oct 2011 09:41:43 +0000 (09:41 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 14 Oct 2011 09:41:43 +0000 (09:41 +0000)
src/core/gnunet-service-core_sessions.c

index ea6fc234fb52e77f1c71c96d80f7258a50451012..3c29bd065be6dae0dd1731cb865dedd83fb855ad 100644 (file)
@@ -602,6 +602,8 @@ GSC_SESSIONS_transmit (struct GSC_ClientActiveRequest *car,
   size_t msize;
 
   session = find_session (&car->target);
+  if (NULL == session)
+    return;
   msize = ntohs (msg->size);
   sme = GNUNET_malloc (sizeof (struct SessionMessageEntry) + msize);
   memcpy (&sme[1], msg, msize);