transport_tcp: make use of GNUNET_HELLO_address_check_option
authorDaniel Golle <daniel@makrotopia.org>
Thu, 4 Aug 2016 11:35:25 +0000 (11:35 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 4 Aug 2016 11:35:25 +0000 (11:35 +0000)
probably this was forgotten earlier

src/transport/plugin_transport_tcp.c

index 02c0afaad3e5781d3d8cb61607466cddd98495b4..79361d3f270da38a1bb814b42a9ed4fa968adb07 100644 (file)
@@ -540,9 +540,8 @@ notify_session_monitor (struct Plugin *plugin,
     return;
   memset (&info, 0, sizeof (info));
   info.state = state;
-  info.is_inbound = (0 != (GNUNET_HELLO_ADDRESS_INFO_INBOUND & session->address->local_info))
-    ? GNUNET_YES
-    : GNUNET_NO;
+  info.is_inbound = GNUNET_HELLO_address_check_option (session->address,
+                                         GNUNET_HELLO_ADDRESS_INFO_INBOUND);
   info.num_msg_pending = session->msgs_in_queue;
   info.num_bytes_pending = session->bytes_in_queue;
   if (NULL != session->receive_delay_task)