*/
#define GNUNET_CORE_OPTION_NOTHING 0
+/**
+ * The client did properly initialize the connection.
+ */
+#define GNUNET_CORE_OPTION_INIT 1
+
/**
* Client cares about connectivity changes.
*/
env = GNUNET_MQ_msg_extra (init,
sizeof (uint16_t) * h->hcnt,
GNUNET_MESSAGE_TYPE_CORE_INIT);
- opt = 0;
+ opt = GNUNET_CORE_OPTION_INIT;
if (NULL != h->inbound_notify)
{
if (h->inbound_hdr_only)
int old_match;
int new_match;
+ if (GNUNET_CORE_OPTION_NOTHING == client->options)
+ return; /* client did not yet send init */
old_match = GSC_TYPEMAP_test_match (tmap_old,
client->types,
client->tcnt);