struct Session * ses = plugin->sessions;
while ((ses != NULL) && (ses != session))
ses = ses->next;
- GNUNET_assert (ses != NULL);
+ if (ses == NULL)
+ {
+ GNUNET_break (0);
+ return -1;
+ }
}
GNUNET_assert (session != NULL);
GNUNET_assert (session->client != NULL);