aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_monitor_plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_monitor_plugins.c')
-rw-r--r--src/transport/transport_api_monitor_plugins.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transport/transport_api_monitor_plugins.c b/src/transport/transport_api_monitor_plugins.c
index 818530c84..1bbb4c102 100644
--- a/src/transport/transport_api_monitor_plugins.c
+++ b/src/transport/transport_api_monitor_plugins.c
@@ -296,6 +296,17 @@ response_processor (void *cls,
296 reconnect_plugin_ctx (pm); 296 reconnect_plugin_ctx (pm);
297 return; 297 return;
298 } 298 }
299 if ( (GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_SYNC == ntohs (msg->type)) &&
300 (sizeof (struct GNUNET_MessageHeader) == ntohs (msg->size)) )
301 {
302 /* we are in sync */
303 pm->cb (pm->cb_cls,
304 NULL,
305 NULL,
306 NULL);
307 return;
308 }
309
299 if ( (GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_EVENT != ntohs (msg->type)) || 310 if ( (GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_EVENT != ntohs (msg->type)) ||
300 (sizeof (struct TransportPluginMonitorMessage) > ntohs (msg->size)) ) 311 (sizeof (struct TransportPluginMonitorMessage) > ntohs (msg->size)) )
301 { 312 {