-fix NPE
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 14:09:00 +0000 (14:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 14:09:00 +0000 (14:09 +0000)
src/transport/gnunet-service-transport_clients.c

index f286016a673c0c4c7ff7388a664faaa00c2eac44..8c1ca61e5bfa6754089f39899489278d9f932964 100644 (file)
@@ -727,7 +727,7 @@ handle_send_transmit_continuation (void *cls,
                 (unsigned int) bytes_on_wire,
                 GNUNET_i2s (&stcc->target),
                 success,
-                addr->transport_name);
+                (NULL != addr) ? addr->transport_name : "%");
   else
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "It took us %s to send %u/%u bytes to %s (%d, %s)\n",
@@ -737,7 +737,7 @@ handle_send_transmit_continuation (void *cls,
                 (unsigned int) bytes_on_wire,
                 GNUNET_i2s (&stcc->target),
                 success,
-                addr->transport_name);
+                (NULL != addr) ? addr->transport_name : "%");
 
   if (GST_neighbours_test_connected (&stcc->target))
   {