fix crash
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 27 Jun 2013 13:37:50 +0000 (13:37 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 27 Jun 2013 13:37:50 +0000 (13:37 +0000)
src/transport/plugin_transport_tcp.c

index df7e833a07245bd1bbb78274b77c01b6693e3cdb..cbea1d0248d9b87639922b9e15ca84e94e3be68d 100644 (file)
@@ -1356,7 +1356,7 @@ tcp_plugin_get_session (void *cls,
     {
       session = si_ctx.result;
       LOG (GNUNET_ERROR_TYPE_DEBUG, 
-          "Found exisiting session for `%s' address `%s' session %p\n",
+          "Found existing session for `%s' address `%s' session %p\n",
           GNUNET_i2s (&address->peer),
           tcp_address_to_string(NULL, address->address, address->address_length),
           session);
@@ -1405,7 +1405,7 @@ tcp_plugin_get_session (void *cls,
   else
   {
     LOG (GNUNET_ERROR_TYPE_WARNING,
-       _("%s:%u: Address of unexpected length %u (should be %u or %u)\n"),
+       _("Trying to create session for address of unexpected length %u (should be %u or %u)\n"),
                  addrlen, sizeof (struct IPv4TcpAddress), sizeof (struct IPv6TcpAddress));
     return NULL;
   }
@@ -1577,6 +1577,9 @@ struct PrettyPrinterContext
    */
   uint16_t port;
 
+  /**
+   * IPv6 address
+   */
   int ipv6;
 
   /**